Society of Robots - Robot Forum
Electronics => Electronics => Topic started by: vitalik53 on March 23, 2012, 06:21:02 PM
-
Hey guys,
i I was just wondering if its possible to use Arduino uno to implement the 50$ Robot with SHARP IR sensors, is there any Arduino functions that would replace the ATMega8 code Admin wrote
in separate files. Also, how would you send a specific pulse to a servo, would you use the digitalWrite and the delay command? Thank you
-
Hi,
i I was just wondering if its possible to use Arduino uno to implement the 50$ Robot with SHARP IR sensors,
It is.
is there any Arduino functions that would replace the ATMega8 code Admin wrote
in separate files.
Just make a program to do the same thing. I'm sure you can find plenty of examples at either Arduino.cc or the Arduino code repository.
Also, how would you send a specific pulse to a servo, would you use the digitalWrite and the delay command? Thank you
There's plenty of servo libraries fr the Arduino. Get one of them an read the documentation.
-
is there any Arduino functions that would replace the ATMega8 code Admin wrote
in separate files.
Here is the code that can just copy into arduino IDE
http://www.societyofrobots.com/robotforum/index.php?topic=7759.msg59798#msg59798 (http://www.societyofrobots.com/robotforum/index.php?topic=7759.msg59798#msg59798)
-
i understand how it works using the Servo.h library, but i need to convert 'Admin's' code for the SHARP IR rangefinder $50 robot, not the photoresistor $50 robot, into arduino. Also, if you have done the project using sharp ir, can you explain please what the scan_angle values 30 to 57 represent, and where does 'scan_angle>41' comes in ??? thank you