Using arduino for motorcycle telemetry/data logging

Aerodynamics. Basically building a spoiler that pivots in a servo


Sensor data that controls servo will come from gyro/accel. Building a very basic gimble setup that inputs brake lever & pitch of motorcycle to control the picture posted above (wing/spoiler) and will only pivot in 1 axis from the servo. Based off of some tutorials it should be relatively straight forward to do so.

As for RPM and getting data off of the dealer plug thats an option but that will be down the road. It would be easier to get a working prototype and avoid that in the begining but definitely an option in the future.

Currently have Arduino nano, gps module, 6 acis gyro/accel, sd card deck, lipo battery with some misc (holder protection device), and a relay on order. Have no sensors yet but amazon has most and has fast shipping. Thanks for the help.

@groundFungus Thank you! Definitely interesting. My guess is I destroy a few things in the process called "learning" but helpful info like this will keep destruction to a minimum!

"Oh, what a cool sounding idea": an airfoil {"wing") to measure the velocity (based on air flow, the lift generated, e.g. on a spoiler).
Just:

  • the airfoil has an "Angle of Attack" (AOA): the larger - the larger the lift (and force). so, even the AOA must be set/known (calibrated)
  • below a certain speed, and in combination with AOA - the "wing will stall": it will reach critical AOA and not produce any lift anymore (no force), on slow speeds ("airplanes cannot fly slower as") - it will not tell you anything.
  • the biggest problem for you:
    on an airplane, the plane will fly always with the "air speed" needed to create this lift needed.
    So, with tail wind or with head wind - the airspeed is the same (not the same above ground, but the same as in relation to the "wind" (here), but the ground speed changes)
    Now, you have an object bound to the ground - the ground speed matters. The wind speed is different (driving into the wind or with the wind has a huge effect if bound to ground speed).
    It will NOT tell you anything about your ground speed: if the wing stalls because you are driving with the wind - (and no airflow over the airfoil) - what can you measure?

And: potentially, slow speeds result in zero (or very low value). In airplanes, you need approx. 20 mph to get any indication (we call it as pilots as "air speed alive").

Instead of a wing, you can use also a Pitot Tube: in order to measure the relative speed in the wind:
Pitot Tube
But it tells you the relation to wind, not ground speed.

You do not need a spoiler, you do not need an airfoil: just a tiny tube for "dynamic pressure".

The wing/spoiler is for downforce and and braking power. No need to test or know windspeed other than registered speed on speedo. Max together force at 80 degrees is 20lbs calculated force at 140mph. So downforce will be less than that most likely but I haven't ran a calculation for that. Moral of the story is I am not using wing for air speed velocity.

Plans changed slightly (only in the more work for me category) but I added some time of flight sensors, ambient air temp, humidity, and potentially oil temp like in the link above. Most parts have been ordered as of now. Currently have a Mega I am messing with but I have zero sensors/input/output devices. Ordered an arduino kit and several sensors to start testing and will hopefully have the easier things working soon (ToF, Temp sensors, and so on). Servos are last on the list currently, tire sensors are first.

I have now wrote 1 program in my life for arduino's so this project is getting closer to completion every day!

After copying and pasting my a program and adjusting it it shows 19% of my program storage space is used and 23% of my dynamic memory is used on a Nano. Looks like Arduino Mega for the win! Only 2% & 5% respectively and I will need as much room as I can. Might end up using a PI for this project but I am having so much fun with this Arduino.

Thanks for the update. It will be fun to hear how things go!

Updates are in original post to make it easy for new comers.

I need help with installing the SD card reader to Nano or mega. I don't quite understand and honestly haven't had as much time to dedicate to that section but I couldn't get it to work first try.

Also I am trying to make my relay open and close off an input preferable for right now for testing purposes do it with my distance sensor at around 100mm it sends a digital output to my relay to open it. Is this possible?

@DaveEvans Thank you!

I have officially made the relay work. Next is a conditional statement on an input.