Standalone atmega328p and nrf24 not working.
-
Hi. Standalone atmega328p and nrf24l01 powered from two batteries AA. Votlage is 3,28V. Tried a lot of bootloaders and fuses, 3 other atmega and 3 other nrf still have same errors:
10143 TSM:FAIL:RE-INIT 10145 TSM:INIT 10151 !TSM:INIT:TSP FAIL 10156 TSM:FAIL:CNT=2 10158 TSM:FAIL:PDT 20162 TSM:FAIL:RE-INIT 20164 TSM:INIT 20170 !TSM:INIT:TSP FAIL 20172 TSM:FAIL:CNT=3 20176 TSM:FAIL:PDT
Any ideas? Regards scalpel
-
Are you running 8 mhz?
-
Please see https://forum.mysensors.org/topic/666/debug-faq-and-how-ask-for-help/ if you find anything there.
Most likley you got the Radio not wired correctly.
-
@scalpel Do you have a decoupling capacitor on your radio's incoming power leads? If not, myself and a bunch of others are going to recommend that you put one on. It can be mounted right to the radio itself. It should be in the range of 4.7uf to 47uf. If you don't want the capacitor on top of the radio, mount it as close to the radio as you can.
https://www.mysensors.org/build/connect_radio#connecting-a-decoupling-capacitor
-
Ive read a lot of topics and tried everything. Tried arduino 1.6 and arduino 1.8. Tried library 2.0 and 2.1.1. Added Capacitor 4,7uf. Tried 1mhz and 8mhz internal oscilator. Tried other sketches and still radio wont start.
-
@scalpel - if your radio wont start its either wrong wired, not enough power or hardware failure.
-
Can you post a picture of the radio module? Did you try them on a normal arduino if they work?
-
-
The cap is a little far away from the radio but at least it should initialize. I see you have a nano in the background? If you attach the radio to that, does it still not work?
-
@scalpel IT also looks like you got a couple of capacitors missing on the atmega: http://www.gammon.com.au/breadboard.
-
Awrgh! Sorry! Its working! There was small white jumper from previous project connected from VCC to CSN. Thank you for help.