Help on Model F1 Car
I am not sure whether or not I should use a raspberry pi for my project. I have a project to do and it's an F1 car. The requirements are
(a)Have a variable speed rear propulsion unit;
(c) Incorporate a driver-activated drag reduction system (DRS) in the rear wing structure;
(d) Have a rear light warning system.
I have absolute freedom in how I can implement it and I am thinking of a three-step process that I can use with the raspberry pi. I will be using a potentiometer for variable speeds. I was thinking that first, the potentiometer will turn a small bit, and from the raspberry pi, only the rear light will turn on, then after turning the potentiometer more, the rear light will stay on and the motor will start moving (slowly) and finally, the rear light will stop and the motor will be able to move faster and only then at that point the DRS system will activate (the system being a flap that's moving up and down from a pulley or something), moving the flap up.
And by reducing the potentiometer, each step will be reversed: DRS system and fast speed--> no Drs and medium speed with lights--> motor off and light on-->no power. I'm not sure if my explanation was clear but I do need help on this. Is it possible in any way, and if so how can I go about and do it
Posted Sep 16, 2021, 3:14 PM UTC
Honestly, using a Pi for this project is overkill, it's better suited to an Arduino style microcontroller board (like the Arduino Nano, which is tiny and cheap), which could easily handle this project. Plus, you wouldn't have to wait for Linux to boot up every time you wanted to use it.
Rather than a potentiometer, you could use a rotary encoder to control the PWM output of a pin on the microcontroller, which would be attached to the ESC/motor controller for the motor that drives the rear wheels. Another PWM output can be used to control a hobby servo that moves the rear wing to implement DRS. Then you just need one more pin to activate the light.
You can have an 8 bit value that represents speed which is changed by turning the rotary encoder. If the value is less than 5, for example, the light is on, but no power is fed to the motor. As you turn the knob further, you set the PWM output for the motor to start adding more pulsewidth to speed up the motor. Once the value is over a certain threshold, you can use an if statement to change the angle of the servo controlling the rear wing.
Alright thanks, I'll purchase them online and see if I can make it work