go away spammer

Author Topic: $50 Robot Question (Input vs. Output)  (Read 1765 times)

0 Members and 1 Guest are viewing this topic.

Offline ksquaredTopic starter

  • Jr. Member
  • **
  • Posts: 45
  • Helpful? 0
$50 Robot Question (Input vs. Output)
« on: March 19, 2011, 01:30:47 AM »
I have a $50 dollar robot board that is tested and ready to go except the positive bus adjacent to the C group of pins is not connected to anything.  I wanted to possibly leave these configurable as output pins, but that would potentially leave the microcontroller connected directly to 9 volts if I build it as per the instructions.  Might this hurt it?

How would it affect the sensors to be hooked up to the lower voltage?

If so, I could hook up a switch so the 9 and 5 volt levels could be toggled between, but unfortunately that would be easy to mess up during usage....

And thanks for any word!

Offline hopslink

  • Robot Overlord
  • ****
  • Posts: 202
  • Helpful? 14
Re: $50 Robot Question (Input vs. Output)
« Reply #1 on: March 19, 2011, 04:36:58 PM »
Quote
I wanted to possibly leave these configurable as output pins, but that would potentially leave the microcontroller connected directly to 9 volts if I build it as per the instructions.  Might this hurt it?
If you follow the instructions properly no microcontroller pin will see 9V. 9V is too much for the inputs/outputs and you would likely damage the micro. That is the reason for the voltage regulator.

If you configure those pins like the tutorial with power buses and try to change the PortC (sensor) bus above 5V then you will not be able to use any of the pins as analogue inputs with that bus (actually you can, but it is not simple to do). How likely is it that you will build a 'bot that doesn't require analogue inputs? Could you not add extra headers for the unused pins (9:14) for extra IO? After that you could relocate the ISP header and use pins 15:19 also.

Quote
How would it affect the sensors to be hooked up to the lower voltage?
It depends entirely on the sensor as to what voltage it requires. From the point of view of the micro a voltage below 5V will not hurt it, but you will not be able to use the full voltage range of the ADC and so will not have the full 10 bit precision available. This is usually not a big issue.

Quote
I could hook up a switch so the 9 and 5 volt levels could be toggled between, but unfortunately that would be easy to mess up during usage....
Yes you could, I like to use a jumper to select different bus voltages as it is compact and fits well with the existing headers, but a switch would work fine too. 


 


Get Your Ad Here