-
Notifications
You must be signed in to change notification settings - Fork 200
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
How to check if firmware loaded is working? Is there a simple way to debug? #63
Comments
LED blinking means the PPM input is not detected. That's probably because PPM output (from transmitter) shouldn't be directly connected to PPM input (arduino). |
oh i see, that make sense, i have a logic level converter, i will try, are there any signal in LED that i need to watch for to see if its working or not? also i noticed the board does not turned on when the throttle stick is not at the down position, so in my case which is the WLTOYS, the instructions says only elevator up, so it means throttle down + elevator up? is that correct? |
A logic level converter might work but is not ideal because you'll need a voltage source of the same voltage as the PPM output (to be measured with a scope ...). Better use a single mosfet or transistor so only a 3.3V source is required, which you already have. (hint: you might get them from your logic level converter's board 😉) |
And if you want to debug, start by checking if you're stuck here, that's probably the case:
Just add some debug output code into the { }, as long as the code is here it means PPM input is not detected. |
don't use a simple Serial.println, that would mess up the PPM interrupt, use something like that into the { }:
edit: if not already done, init the UART in setup(), after frskyInit(); : |
I don't have a mosfet, my hands are too shaky to unsolder too small components, but i do have an NPN transistor, can you show me a diagram if i use NPN transistor? Thanks very much for the debug code, that would help a lot. |
(edited, messed up the wiring...)
Use google to know which pins C, B and E are with your transistor's model. |
Sorry, I edited my previous message, you might have connected your transistor in reverse... |
i added the transistor and resistors as per the diagram, now when i power up the transmitter, led blinks once. is that the correct behavior? although i still could not bind. |
First try to add some debug code to check if PPM input is detected. |
Hi Goebish,
I tried to replicate using pro mini 3.3v + NRF24L01+PA+LNA (10uf capacitor 3.3&GND), i've used a 3.3v regulator to power both and it works fine, i have tested using a test transmit receive code and it works fine, now I changed the TAER to AETR in the code and uploaded it, i put a 10K resistor for my ppm, i'm using a jumper t-lite with the external adapter for external module, i soldered the ppm, power and ground, so the module is powered by the transmitter, but now i am trying to bind to a wltoys and it does not bind, everything loos fine, power and also booting, the promini led blinks at power up.
Is there a way i can know if the code is working, any simple debugging i can add to the code? or any sign from the LED?
Thanks very much.
The text was updated successfully, but these errors were encountered: