-
Notifications
You must be signed in to change notification settings - Fork 17
Update voltage divider math #26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
I'm adding code modified by ChatGPT and checked by me with added arming via PWM channel (pin D2) and filtering of voltage measurement. In my case, measurement for 4s with resistors R1=10k and R2=2.2k. |
|
Thanks @longer1996. However, have you tested this with the air unit and got it to successfully arm and disarm every time? I had also developed the PWM channel code, but the MSP messaging caused issues and the air unit was not reacting consistently. It was simply more reliable to leave it on once. |
I just put it together and haven't flown it yet. It worked as many times as I tested it on the table. If it works, I'll probably forget to share it here, so I preferred to write it right away. If the tests show that it doesn't work, I'll definitely come back here. :) |
|
I tested the device with the code I provided previously. |
|
@longer1996 nice work. Let me know if this tests out ok and I'll pull in your work to the master. |
After about 10 flights, I can confirm that the code I shared in the previous post worked flawlessly 10/10 times. |
This resulted in very accurate readings for me so thought I'd share