nrf24_multipro icon indicating copy to clipboard operation
nrf24_multipro copied to clipboard

eachaine h8 mini (blue board)

Open alexkwinto opened this issue 8 years ago • 43 comments

Hi,

is seems that h8 mini (blue board) has changed the protocol. Is there any way to check it?

Alex

alexkwinto avatar Feb 20 '17 12:02 alexkwinto

Where did you read that ? All the blue boards I've seen are using the same protocol than the green ones.

goebish avatar Feb 20 '17 12:02 goebish

just an assuption by failing to connect =) that is why i'm looking for a way to check it.

alexkwinto avatar Feb 20 '17 12:02 alexkwinto

Have you checked your module with another machine ?

goebish avatar Feb 20 '17 12:02 goebish

no, i have no other copters to check. so yes the problem might be in my build

alexkwinto avatar Feb 20 '17 12:02 alexkwinto

Yes, triple check your wiring, make sure you give only 3.3 Vcc to the nrf24l01, and depending of the transmitter you're using you probably have to adapt the level of the PPM output to 0-3.3V.

goebish avatar Feb 20 '17 12:02 goebish

i'm overrided protocol selection to bind to copter regardless the ppm values. is there a way to check arduino-nrf24 connection?

alexkwinto avatar Feb 20 '17 12:02 alexkwinto

yes, check if NRF24L01_Reset() returns 1.

goebish avatar Feb 20 '17 12:02 goebish

TY, i will check it in few days and will let you know.

alexkwinto avatar Feb 20 '17 13:02 alexkwinto

hi again, NRF24L01_Reset() returns zero. im using arduino uno to debug and printing to port monitor

alexkwinto avatar Feb 20 '17 16:02 alexkwinto

ok i found the issue! THank you kindly!

alexkwinto avatar Feb 20 '17 16:02 alexkwinto

Cool, can you explain the issue you had ?

goebish avatar Feb 20 '17 16:02 goebish

connection order( but now i can see an other issue - on low throlette the motors spinnig with interrupts

alexkwinto avatar Feb 20 '17 17:02 alexkwinto

also on hight trollette, can this be a connection interrupt or something?

alexkwinto avatar Feb 20 '17 17:02 alexkwinto

Check your antenna, also, if you're using a nrf24l01 module with PA+LNA the 3.3V output of your Uno might not be able to provide enough current. In this case you can try a lower RF output power.

goebish avatar Feb 20 '17 17:02 goebish

no im powering nrf24l01 with separated 3.3v bec. i checked the operating voltage -3.29 so shoud be fine. also found some trolette action when the thorelette at minimum, if you need i can make a video to show.

alexkwinto avatar Feb 20 '17 17:02 alexkwinto

Maybe the problem is your PPM output then, have you checked its voltage (with a scope, this can't be done with a simple multimeter ...) Which transmitter are you using ?

goebish avatar Feb 20 '17 17:02 goebish

i dont have a scope to check it, the only way on my mind to debug it is to print throlette values to the port monitor of arduino IDE.

alexkwinto avatar Feb 20 '17 17:02 alexkwinto

Yes you can try that, but try to display the value only once per second for example (in update_ppm()), because I think using the UART too much will mess with PPM interrupt.

goebish avatar Feb 20 '17 17:02 goebish

can you please advice how to do that? im not that good with time delayed tasks. also what is a good place in code to set prints?

alexkwinto avatar Feb 20 '17 17:02 alexkwinto

put that at the end of update_ppm:

static uint32_t next=0; if(millis() > next) { next = millis()+1000; println(ppm[THROTTLE]); }

goebish avatar Feb 20 '17 17:02 goebish

yes the numbers are not stable:

1252 1186 1414 1199 1415 1187 1414 1414 1011 1000 1413 1000 1414 1414 1414

alexkwinto avatar Feb 20 '17 17:02 alexkwinto

Which transmitter are you using ? You need to adapt the level of the PPM output (in hardware).

goebish avatar Feb 20 '17 17:02 goebish

AT9

alexkwinto avatar Feb 20 '17 17:02 alexkwinto

Do you have a n-mosfet handy ?

goebish avatar Feb 20 '17 17:02 goebish

yes STN4NF20L, it is supplyed with 3.3 BEC througth the 10k resistors on vcc and ppm

alexkwinto avatar Feb 20 '17 17:02 alexkwinto

Here's a schematics, it should work with virtually any small power n-channel mosfet, such as the ones used to drive the motors in small toy quads. http://i.imgur.com/Km99vxX.png

If you do not have a n-mosfet you can try to make a voltage divider with 2 resistors, but I can't recommend a ratio for the 2 resistor as I've no idea of the voltage of your PPM output. The n-mosfet solution is more universal.

goebish avatar Feb 20 '17 17:02 goebish

the 4NF20L should be fine, its Gate threshold voltage is low enough.

goebish avatar Feb 20 '17 17:02 goebish

also the ppm signal is stable as i checked it with simulator flights

alexkwinto avatar Feb 20 '17 17:02 alexkwinto

On some transmitters, the PPM output is open drain, in this case, try to add a 10K resistor between PPM output (PPM_IN in the schematics) and +3.3V to pull it up.

goebish avatar Feb 20 '17 17:02 goebish

i added 10K resistor to pull up, if i use your print it looks fine but if i print more often sometimes i can see that:

1373 1000 1000 1000 1373 1373 1373 1373 1365 1365 1365 1374 1374 1374 1374 1374

alexkwinto avatar Feb 20 '17 17:02 alexkwinto