Continue Discussion 43 replies
Oct '10

rik

Good job

Congratulations.

Oct '10

ddibling

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? 

Oct '10

korel

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 :slight_smile:

Oct '10

korel

You look like a nice and

You look like a nice and cool guy.  By the way would the code work on the arduino Duemilanove too?

1 reply
Oct '10 ▶ korel

ignoblegnome

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 replies
Oct '10

dimbleswishblade

**nice **

you got further then my arduino start here robot :stuck_out_tongue:

Oct '10 ▶ ignoblegnome

captaintuna

Strange 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
Oct '10

droidbuilder

Nice SHR!

NICE example SHR! Great video explanation - something I need to do in my own videos… :slight_smile:

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… :-/

 

Oct '10 ▶ ignoblegnome

korel

Thanks for your help both :slight_smile:

Thanks for your help both :slight_smile:

Oct '10

GroG

Thumbs Up!

Nice to see you’ve joined the “Show Your Face Club” @ LMR.  Keep up the good work !