I'm struggling with my arduino active aerodynamics setup.
I have build a setup using Arduino Uno which supposed to activate my RC linear actuator depending on a GPS module speed info. 12v and 5v powered. But it's not working once programmed and wired.
There meant to be 2 modes - mode A provides with 3 stage strokes, first at speed reading X, second and speed reading Y, and third strokes once brakes are hit. Mode B is basically a show mode and shall run all above stages repeatedly in a loop every 90 seconds without any GPS based data.
I assume there might be some gaps in coding or perhaps in wiring.
I will be highly appreciated if someone could review and advise on how to fix the issue or perhaps has one working willing to share.
Attaching ino file and quick pinout sketch in pdf.
Thank you! Now tell us when did your system stop working. What was the last change? And what does "not working" mean to you. Remember, we cannot see what you have done or are doing.
If nothing else, all those long delays will make the system very unresponsive, and interfere with the communication from the GPS because of the serial buffer overflowing. All the data being written to Serial at 9600 baud will also slow things down.
I had wired modules together as shown on pdf circuit diagram, coded in the ino file and GPS libraries and the setup is not responding. I have diodes lighting up, but the actuator is not actuating for no circumstances.
It was my first attempt and experience with arduino, so there was no previous tries with this setup. first ever and fails at beginning.
I got the code of someone else who used it without hustle, but the man vanished into thin air so no support available from its creator.
Are you the one that marked up the schematic in red so the correct battery + and - to the relay contacts cannot be read? IF you actually connected up those relay connections properly, the actuator might actually run.
thanks, before I lost contact with code owner I ask someone to make a diagram based on code and I sent it to him and the man did his corrections and said this is how it should be instead.
Well this is what I suspect that wiring is not right.. Any suggestions how to fix it please?
Just looking at the schematic now, both relays NC and NO according to the code owner meant to be BATTERY NEGATIVE. Last time we spoke he said he merged them together and grounded to car chassis.
My friend, I did not. It was you who missed to read with understanding or to put on glasses while reading. If you can't understand the way informations were given and your life doesn't depend on them - why would you bother to join the topic in first place and waste anyone's precious time including yourself?
My first post describes best to my knowledge what is the purpose of the setup and how it should work. I don't talk nintento or arduino or ai so I can't make it super clear specially for you, but I made it clear enough for others. Thanks for your input.
GPS module to my knowledge reads current vehicle position and speed. When certain speed value is reached Arduino shall trigger linear actuator at coded strokes.
There should be two values for speed, let's call them X and Y.
Linear actuator job in this setup is to stroke total of 3 times. Two of the strokes, let's say 30% and 60% of it lengths are regulated by speed value X and Y.
If vehicle travels at speed X, the stroke meant to trigger and remain 30% unless vehicle reach speed Y or drop below value X. If reach speed Y then stroke 60% is triggered and remain on unless speed value drop below Y or below X.
The third stroke of linear actuator is triggered by individual signal once brakes are hit, regardless of speed reading from GPS, the stroke from brakes supposed to reach 100% and remain in this setting as long as brakes are compressed which means as long as signal is being provided to Arduino board.
The ino file also contains a code for "show mode" which loops all of strokes in 90seconds intervals, each one by one 0% to 30% to 60% to 100% to 0% etc without any speed reading, stationary or not.
My understanding is : if someone actually is good in Arduino coding and modules assembling, the ino file and the pdf sketch perhaps should be enough to see the setup motion and work parameters, this is why I include these files to my topic in case if I won't use proper programing language to describe the problem.
The bottom line of the problem is : the setup is not doing all of the desired actions. I'm in big need of help to point what am I doing wrong, and what can I do to fix it.
Someone please help me understand so I can keep working on it.
Rather than start with a complete program and wonder why in its full sense it does not work, I would start at the beginning.
Do each of the switch and actuator functions work well as individual programs ?
Do the GPS routines read the speed consistantly and reliably ?
Etc.
Myself I would not be using software serial for an application that clearly requires good and consistent performance from a GPS. You really do need to use an Arduino that has a spare hardware serial port for the GPS.
Its soundls like this is a car, but how big a model is it ?