Pages: [1]   Go Down
Author Topic: (Solved) -- [SRF05 Sensor] Probably a stupid question...  (Read 812 times)
0 Members and 1 Guest are viewing this topic.
Newcastle, UK
Offline Offline
Newbie
*
Karma: 0
Posts: 20
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi..  I'm using Arduino UNO, and have 12 servos to run, and I didn't realise before that Ultrasonic sensors also need 'digital' pins to operate smiley-neutral

I need to know if there's any way I can use the Analog pins to operate SRF05 sensor ?

Also, if that^ is not possible, then (since I have 2 SRF05 sensors), is it possible to trigger both together using only 1 digital pin, and then read their pulses from Analog pins separately ?

Thanks
« Last Edit: August 12, 2011, 08:52:05 am by Hasan999 » Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 290
Posts: 25802
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, you can use the analogue pins as digital,
Use A0...A5, or 14 to 19 as the pin numbers.
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Newcastle, UK
Offline Offline
Newbie
*
Karma: 0
Posts: 20
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

OHH..  So I can simply make the Analog pins HIGH and LOW as well?

..and the programming won't be any different either? :O

btw, Thanks for the quick response !
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 290
Posts: 25802
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Just use "pinMode" and "digitalRead" / digitalWrite" as before, but with the pin numbers I described.
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Pages: [1]   Go Up
Jump to: