-
Hello Gordon,
you rock!! I've review the wiring in this particular part and now it works great for me! I'm now able to plug the NRF24L01+ in on my Espruino with a bunch of female-to-female-wires.
One additional question: What are your experiences with range of NRF24L01+? How can you increase it?
Thank you very much,
Stefan
The correct wiring:
NRF24L01+ Name Espruino Type 1 GND GND GND 2 3.3V 3.3 3.3v 3 CE A0 GPIO Out 4 CSN A1 GPIO Out 5 SCK B3 SPI SCK 6 MOSI B5 SPI MOSI 7 MISO B4 SPI MISO 8 IRQ unused GPIO In
-
Hello everybody,
the tutorial on "NRF24L01+" is not working for me:
http://www.espruino.com/NRF24L01PIt's driving me crazy, because I always get the following message on the master:
>nrf.sendCommand("1+2", function(r) { print("=="+r); }); TX not received 255 TX not received 255 TX not received 255 =undefined
Any suggestion are welcomed very much, as I need an working NRF24L01+ for a futur project!
Thank you very much,
Stefan
My connections:
NRF24L01+ Name Espruino Type 1 GND GND GND 2 3.3V 3.3 3.3v 3 CE A0 GPIO Out 4 CSN A1 GPIO Out 5 SCK B3 SPI SCK 6 MOSI B4 SPI MOSI 7 MISO B5 SPI MISO 8 IRQ unused GPIO In
My testcode:
Slave:
SPI1.setup({sck:B3, miso:B4, mosi:B5}); var nrf = require("NRF24L01P").connect( SPI1, A1, A0 ); function onInit() { nrf.init([0,0,0,0,1], [0,0,0,0,2]); } function toggle1(){ on1=!on1; digitalWrite(LED1,on1); } onInit(); setInterval(function() { toggle1(); nrf.slaveHandler(); }, 50);
Master:
SPI1.setup({sck:B3, miso:B4, mosi:B5}); var nrf = require("NRF24L01P").connect( SPI1, A1, A0 ); function onInit() { nrf.init([0,0,0,0,2], [0,0,0,0,1]); } onInit(); setInterval(function() { nrf.masterHandler(); }, 50);
-
-
Thanks for your feedback!
I've integrated the 32,768KHz quarz crystal in the code (newer version of the code). I use this for logging purpose. The reason why I'm logging via bluetooth is the easy integration and my love to the command line :-) and the bidirectional communication. You see how flexible the espruino is, because I could also log to a SDHC-card...
The signal has a range of around 10 to 15 meters, so enough for my flat.
-
Hi everyone,
as we have got a newborn, I've turned the Espruino in a intelligent temperatur sensor, which monitors the Babies temperature. If it exceeds a value of 37.5 degree Celsius, a visual and acoustic warning signal starts and helps the parents to prevent the baby from overheating.
The tutrial is in German, but on the side, a translation function is integrated:
I hope, that this is useful for others here.
Stefan
-
Hello Gordon and DrAzzy,
you're great! Both solution work well for me! In fact the "Serial1.setup(9600,{tx:B6,rx:B7}); " solution is more clear for somebody, who don't know the default pins. Perhaps this can be integrated in the http://www.espruino.com/Reference#Serial Reference (which I find very useful).
Many thanks for this quick answer!
Stefan
-
Hello,
I've bought a HC-05 Für Arduino hp and the connection to my Blueterm-App (Android) and also to my Debian-Linux-PC (over Blueman or commandline) were successfull.
So I wanted to try out the tutorial http://www.espruino.com/Project+7. Instead of soldering the Bluetooth-module to the Espruino-Board, I wanted to plug it in with some jumper wires, as other connections are possible according to http://www.espruino.com/Wiring+Up.
My connection is:
HC-05 : Espruino GND : GND 3.3 : 3.3 TXD : B7 RXD : B6
My problem is, I can't receive any data over the connection.
I tried out the following script, I found in the forum:
function onInit() { Serial1.setup(9600);} Serial1.onData(function (e) { print("--->"+e.data); }); setInterval(function() { Serial1.println("Hello"); }, 1000);
I would be glad, if somebody could help me!
Stefan
-
-
Hi Gordon,
Thank you very much for the infos!
How did you manage the connection to the B6, as there are special connections required? So what have you used as "two leads" --> for B6 you need a "Banana Plug" for the direct connection? And is it correct to use a Male one, not a Female for the charging wire? I think the male is at the batteries...
Would instead ebay or progressiverc also fit for B6? They look quite suitable for me.
To build a PHR-2 connector, you need a
- JST (JAPAN SOLDERLESS TERMINALS) - SPH-002T-P0.5S. - CONTACT
- JST (JAPAN SOLDERLESS TERMINALS) - PHR-2 - HOUSING
and solder them together like any other JST-Connector (https://www.youtube.com/watch?v=54hq2s3kTJk
). Right?
Sorry for the noob questions ;-) (soldering is no problem for me), but I want to have all the parts I need altogether for an order.
Kind regards,
Stefan
- JST (JAPAN SOLDERLESS TERMINALS) - SPH-002T-P0.5S. - CONTACT
-
Hello,
I'm from Germany and like the espruino very much! As I want to buy a suitable add-on for my B6 iMAX and a LiPo-battery I visited http://www.espruino.com/Battery.
Even though I have questions:
- Is the "Parallel Charging Balance Board for Lipo LiFe Li-ion IMAX B6 Battery Charger DIY" suitable for the JST PHR-2 2 Pin connector battery?
- Can someone suggest me a BATTERY-LIPO1400mAh (or even better a suitable search string for ebay) like the one from olimex.com on ebay, as I want to save shipping costs?
Many thanks in advance,
Stefan
- Is the "Parallel Charging Balance Board for Lipo LiFe Li-ion IMAX B6 Battery Charger DIY" suitable for the JST PHR-2 2 Pin connector battery?
Thank you Gordon! I'll try it out!