Go Down

Topic: need help understanding code (Read 1 time) previous topic - next topic

AWOL

What have you got connected to pin 2? i.e how are you triggering this thing?
"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.

Caadi


What have you got connected to pin 2? i.e how are you triggering this thing?


photo/light gate.   When a fin blocks it, it sends a high logic to arduino.

AWOL

And does it work? are you seeing interrupts from it?
"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.

Caadi

#18
Mar 04, 2013, 01:44 pm Last Edit: Mar 05, 2013, 02:21 pm by Caadi Reason: 1
Yes it works, I wrote my own code to give me the RPM based on the output from this.

Also used pwm to change the speed for the motor and this was confirmed by the rpm read.


So can anybody help me understand this code?

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy