Hi Everyone. I built an ATTiny2313 that sends out a PWM signle to a MOSFET motor controller to control the speed of a motor.
The Power source for the Motor is running from a 18V (12v and 6v) source (Batteries in series)
https://www.amazon.com/RioRand-Cont...3737501&sr=8-1&keywords=pwm+mosfet+controller
The controller can be found above.
I then use a whole different power source to power my Microcontroller that is running the Attiny2313 (9V D Battery). I then have a switch that is hooked up to the 12v source that runs through a voltage regulator and then runs to a Pin on the Microcontroller as the Gas Pedal, eventually I want everything on the two batteries in series but for now I have the controller on a separate 9V.
My main concern is that I am taking a 12V voltage source and running it to a whole another circuit that has different common grounds and may run into issues.
Is there not any way to wire this up without shorting? Is an Optocuppler required considering The voltage signal is coming from a completely different battery source?
The signal is running straight to the Pin on the Microcontroller and brings the signal hi and there is a 4.7k Resistor that is wired to the same pin and to ground to prevent floating.
Thanks in advanced!!
The Power source for the Motor is running from a 18V (12v and 6v) source (Batteries in series)
https://www.amazon.com/RioRand-Cont...3737501&sr=8-1&keywords=pwm+mosfet+controller
The controller can be found above.
I then use a whole different power source to power my Microcontroller that is running the Attiny2313 (9V D Battery). I then have a switch that is hooked up to the 12v source that runs through a voltage regulator and then runs to a Pin on the Microcontroller as the Gas Pedal, eventually I want everything on the two batteries in series but for now I have the controller on a separate 9V.
My main concern is that I am taking a 12V voltage source and running it to a whole another circuit that has different common grounds and may run into issues.
Is there not any way to wire this up without shorting? Is an Optocuppler required considering The voltage signal is coming from a completely different battery source?
The signal is running straight to the Pin on the Microcontroller and brings the signal hi and there is a 4.7k Resistor that is wired to the same pin and to ground to prevent floating.
Thanks in advanced!!