Author Topic: a question on multiple power sources  (Read 2336 times)

0 Members and 1 Guest are viewing this topic.

Offline BuddingContraptionistTopic starter

  • Jr. Member
  • **
  • Posts: 44
  • Helpful? 0
a question on multiple power sources
« on: December 11, 2008, 08:44:41 PM »
i have an atmega168 with a 5 volt battery pack, which connects to an LED that i turn on/off every second.  i have an h bridge and a 12v motor with a 12v power supply.  the 168 talks to the h bridge.  when i plug in only the 12v to the h bridge, for the motors, the LED, which is only connected to the 168, lights up dimly.  This is not a good sign, right?  This indicates a short?  I don't have capacitors on the motor leads, or from the 12v ground to the common ground.

Offline pomprocker

  • Supreme Robot
  • *****
  • Posts: 1,431
  • Helpful? 16
  • Sorry miss, I was giving myself an oil-job.
    • Nerdcore - Programming, Electronics, Mechanics
Re: a question on multiple power sources
« Reply #1 on: December 11, 2008, 09:08:55 PM »
what kind of resistor do you have on the LED?

Offline BuddingContraptionistTopic starter

  • Jr. Member
  • **
  • Posts: 44
  • Helpful? 0
Re: a question on multiple power sources
« Reply #2 on: December 12, 2008, 05:23:41 PM »
330 Ohms

perhaps i shouldn't have used the word "dimly"... its just a little less bright than what the mcu is making it blink, evidence of the 12v somehow coarsing through to my LED
« Last Edit: December 12, 2008, 05:35:10 PM by BuddingContraptionist »

Offline HDL_CinC_Dragon

  • Supreme Robot
  • *****
  • Posts: 1,261
  • Helpful? 5
Re: a question on multiple power sources
« Reply #3 on: December 12, 2008, 06:18:11 PM »
It depends on how the circuit is wired up I guess. Dont suppose you could post a circuit diagram?
United States Marine Corps
Infantry
Returns to society: 2014JAN11

Offline BuddingContraptionistTopic starter

  • Jr. Member
  • **
  • Posts: 44
  • Helpful? 0
Re: a question on multiple power sources
« Reply #4 on: December 12, 2008, 07:27:37 PM »
i dont have a circuit diagram, i just bought a pcb and some components and have been winging it.  what's particularly disturbing is that if i start it with both power sources, then remove the 5v, the microcontroller continues to run (light keeps blinking) (!!)
« Last Edit: December 12, 2008, 07:28:09 PM by BuddingContraptionist »

Offline HDL_CinC_Dragon

  • Supreme Robot
  • *****
  • Posts: 1,261
  • Helpful? 5
Re: a question on multiple power sources
« Reply #5 on: December 13, 2008, 01:00:07 PM »
well basically that means somehow your regulated 5v line is connected to the unregulated 12v line. Look with a magnifying glass along the path of your 5v regulated lines and make sure nothing is shorting out. Get a high magnification magnifying glass so you can see high detail along the route. Just make sure only the 5v is getting to pin 7, pin 20, and pin 21. Do the same with the 12v lines and make sure there is no way that the 12v lines are touching those pins in anyway
United States Marine Corps
Infantry
Returns to society: 2014JAN11

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: a question on multiple power sources
« Reply #6 on: December 28, 2008, 03:04:48 AM »
Hmmmm so how exactly do you have the motor driver connected to the 168?

 


data_list