Code!!! We want to see the
Code!!! We want to see the code!! (Or at least I do… :P )
Also, what are you using for motor drivers?
Hey my friend,I like your
Hey my friend,I like your robot,well done and great video explanations. It’s good to have comments while the robot is running.
Thanks for posting and I’ll keep an eye on your projects for sure
Yes it will. You just have
Yes it will. You just have to change the analog pin number from 54 to whatever you are using on the Duemilanove.
I’m only using the Mega because it is what I have. It’s HUGE overkill for this robot.
2 repliesStrange coding though…On
Strange coding though…
On the duemilanove you would need to address the pin with it’s “pin number” when using pinMode and digitalWrite, while you would use a number from 0 to 5 (duemilanove has 6 analog inputs) when using the analogRead. I’ll explain myself better: let’s say you want to set the first adc pin as input and activate internal pull-ups, you would do something like this:
pinMode(14, OUTPUT);
digitalWrite(14, HIGH);
and to read from the SAME analog pin you’d write:
analogRead(0);
For pinMode and digitalWrite you gotta start counting from the first arduino pin, and analog ones come right after. For analogRead you start counting from 0, which represents the first pin. You may want to write it down in case you want to make an arduino-based SHR so that folks using duemilanoves can get it working :=)
ps: you probably know this much better than me…main purpose of my post was just reminding :=)
1 reply
Nice SHR!
NICE example SHR! Great video explanation - something I need to do in my own videos…
I really ought to get an order in to Ro-Bot-X for his robo-shield. I seem to keep building the SN754410NE on a breadboad shield for a quick test project, then tear it down, then later end up building it all over again. Would probably spare me some wasted time and effort… :-/