Go Down

Topic: Using the receiver signal to activate codes (Read 370 times) previous topic - next topic

Beginner020

Hello,

I'm quite new to script writing, so I would strugle with harder codes than controlling servos, LEDs etc.
I want to make a code that would be activated by certain strength of RC car receiver throttle signal(the code would activate at certain amount of RPMs and stop if lower). But I don't know how to write it. :(
Please help with that.

wvmarle

In loop():

Code: [Select]

if (rpm > thresholdValue) {
   // do stuff for high rpm
}


where rpm is the latest rpm reading,
Quality of answers is related to the quality of questions. Good questions will get good answers. Useless answers are a sign of a poor question.


wvmarle

Can you read that signal with an Arduino and does it provide an rpm value?
If so: yes.
Quality of answers is related to the quality of questions. Good questions will get good answers. Useless answers are a sign of a poor question.

Hiddenvision

You have two clear options.

Either monitor the PWM signal on the servo to give you a throttle position.
https://www.electronoobs.com/eng_robotica_tut9_1.php

Or put a small sensor on the output of the motor to give actual RPM.
https://www.instructables.com/id/Measure-RPM-DIY-Portable-Digital-Tachometer/



Go Up