Just a fun project for myself.Initial idea was to try to copy the https://github.com/3s1d/tweety and port it on the m5stack. Just to try it out.The first version working was on the M5Core2 but this platform had way more things than required.The idea then was to transfert the vario, which I build based on the m5stack-core2, to m5stick-plus-c.
Code Changes from the Tweety.The Skytraxx tweety is perfect and I own one and fly other devices from Skytraxx. So if you want to something that works. I can only recommend it.But I wanted to tinker around, so I took the climb code with the Linear Regression to try to fit it on the M5Stick.
How to* Connect the Grovesensor and Buzzer to the m5stick.
* Checkout the Githubcode into Visual-Studio Code and Platform IO.
* Compile and upload it to the stick and test it.
Well it worked pretty well with the air :-) so I probably stop here.It is in no way a match with the Tweety but it was fun.One issue which, I can't fix quickly is the polarization of my sunglasses.
Improvements- The code is awful. Sorry :-)
- m/s is not calculated correctly.
- duty cycle and duration of the tone is not correct.
- Actually everything could be improved :-).
[OK] Simplify the screen (green, red, black), only m/s and maybe an arrow.[OK] Modify the tone generation to the buzzer.[NOK] Volume cannot be changed. Maximum with PWM is 50% and it is what we did but it is too low.[OK] Try another external buzzer. You need the hat or external buzzer. Both worked fine.
Setbacks- The M5StickC example code is useless. Speakerclass didn't work. Volume was not updating etc...
Comments
Please log in or sign up to comment.