-
Many thanks for all advice!
Yes, the Pixl is powered with 5v USB. If I measure on the ESP8266 it shows 3.3V.
Flipping tx with rx gives same result (empty string)
I also still just get empty strings as response if I set SW1 and SW2 to 'off'.
Same thing with the first piece of code in #18 from allObjects which returns this;
> >test() =undefined 9600 : "" 115200 : "" 76800 : "" 57600 : "" 74880 : "" Done!
I did order the USB-TTL converter so I'll give the firmware update instructions a shot when I receive it. I'll update here when I have tried that. Sorry if I missed trying something out but as I'm all new to this it's easy to get lost in all details :)
-
@parasquid - many thanks for helping and making the effort to test!
I see the shield as FaryLink_ABC123 in the network but I'm not able to get the info page you mention. Anyway some googling indicated that these shields probably needs new firmware so I'll follow the instructions you linked to. I had to order the USB-TTL adaptor described so have to wait for that though.
-
Changing to Serial1 returns empty strings;
>var serial = Serial1; =Serial1 >var pins = { rx: D0, tx : D1 }; ={ rx: D0, tx: D1 } >function test(baud) { : serial.removeAllListeners(); : var l=""; : serial.on('data', function(d) {l+=d;}); : serial.setup(baud, pins); : serial.write("AT+GMR\r\n"); : setTimeout(function(){console.log(JSON.stringify(l));},800); :} =function (baud) { ... } >//digitalWrite(B9,1); // enable on Pico Shim V2 =undefined >setTimeout(function() { test(9600); }, 2000); =1 >setTimeout(function() { test(115200); }, 3000); =2 >setTimeout(function() { test(57600); }, 4000); =3 >setTimeout(function() { console.log("Done!"); }, 5000); =4 "" "" "" Done! >
-
I get an error when trying to verify the firmware version. Running this;
var serial = Serial2; var pins = { rx: D0, tx : D1 }; function test(baud) { serial.removeAllListeners(); var l=""; serial.on('data', function(d) {l+=d;}); serial.setup(baud, pins); serial.write("AT+GMR\r\n"); setTimeout(function(){console.log(JSON.stringify(l));},800); } //digitalWrite(B9,1); // enable on Pico Shim V2 setTimeout(function() { test(9600); }, 2000); setTimeout(function() { test(115200); }, 3000); setTimeout(function() { test(57600); }, 4000); setTimeout(function() { console.log("Done!"); }, 5000);
Gives me this response;
>Uncaught ReferenceError: "Serial2" is not defined at line 1 col 14 var serial = Serial2; ^ Uncaught Error: Cannot read property 'removeAllListeners' of undefined at line 4 col 7 serial.removeAllListeners(); ^ in function "test" called from line 12 col 10 test(9600); ^ in function called from system Uncaught Error: Cannot read property 'removeAllListeners' of undefined at line 4 col 7 serial.removeAllListeners(); ^ in function "test" called from line 13 col 12 test(115200); ^ in function called from system Uncaught Error: Cannot read property 'removeAllListeners' of undefined at line 4 col 7 serial.removeAllListeners(); ^ in function "test" called from line 14 col 11 test(57600); ^ in function called from system Done!
-
Many thanks for the super clear reply and image! I followed it but unfortunately I receive the error;
Uncaught No 'ready' after AT+RST
when running the below code (from the instruction page). Any idea what I may be doing wrong?
var WIFI_NAME = "x"; var WIFI_PASS = "x"; var wifi; function getPage() { require("http").get("http://www.pur3.co.uk/hello.txt", function(res) { console.log("Response: ",res); res.on('data', function(d) { console.log("--->"+d); }); }); } function go() { Serial1.setup(115200,{rx:D0,tx:D1}); wifi = require("ESP8266WiFi_0v25").connect(Serial1, function(err) { if (err) throw err; console.log("Connecting to WiFi"); wifi.connect(WIFI_NAME, WIFI_PASS, function(err) { if (err) throw err; console.log("Connected"); // Now you can do something, like an HTTP request getPage(); }); }); } function onInit() { Terminal.setConsole(); } go();
-
I now have the WiFi shield but fail to understand the instructions here . I'm sure it's just me lacking knowledge but I don't understand the difference of using it 'as-is' or 'as a shield'. Do I need to re-wire or solder anything or can I just connect the pins from the shield to the Pixl.js? There seems to be different ways of connecting described on the page and I'm not sure which parts of the instruction I need to follow to add the wifi shield as simple as possible. Grateful for any clarification that could help me :)
-
-
-
-
Thank you - I can't find any 'Vin' pin? I moved the I2C board 'VCC' orange wire from the Pico 3.3 to VBAT as in picture but that did not change the result - still display is lit but no text.
Unfortunately I do not have an Arduiono to test on. I tried an original Espruino board and an ESP32 running Espruino but no luck there either.. -
Thank you so much for all replies!
I tried these three suggestions you made but still no "Hello World!". The display is lit and now I don't get any error message. The console.log message is printed but no text on the LCD. Could it be some additional silly beginners mistake I'm doing? The good thing is that I got the Nokia 5110 display I mentioned before to work - it was just a connectivity issue and now it works perfect :)
var i = new I2C(); i.setup({scl:B6, sda:B7}); // PCF8574AT based IO expanders default to address 0x3F var lcd = require("HD44780").connectI2C(i, 0x3F); //also tried changing 0x3F to 0x27 lcd.print("Hello World!"); console.log("test");
var i = new I2C(); i.setup({scl:B6, sda:B7}); // PCF8574AT based IO expanders default to address 0x3F var lcd = require("HD44780").connectI2C(i); lcd.print("Hello World!"); console.log("test");
I2C2.setup({scl:B10, sda:B3}); var lcd = require("HD44780").connectI2C(I2C2); lcd.print("Hello World!"); console.log("test");
-
Many thanks for all help!
When I measure the I2C receives 4V4 from VBAT so maybe that's not sufficient.
The 3.3 pin did not work either.
Removing the the print line still leaves me with the same error (except of course the part related to the print command).I really don't care about this specific display but as it failed just like the Nokia 5110, is there any specific LCD display you can recommend that you know will work with the Espruino boards?
-
Unfortunately it gives almost the same error, except these two lines;
in function "connectI2C" called from line 4 col 51 var lcd = require("HD44780").connectI2C(I2C1, 0x3F);
|_| espruino.com 2v07 (c) 2019 G.Williams >Uncaught InternalError: Timeout on I2C Write BUSY at line 2 col 13 g|4,g|4,g,g]) ^ in function "a" called from line 1 col 7 a(51,1);a(50,1);a(40,1);a(12,1);a(6,1);a(1,1);return{write:a... ^ in function "h" called from line 2 col 15 g|4,g|4,g,g])}) ^ in function "connectI2C" called from line 4 col 51 var lcd = require("HD44780").connectI2C(I2C1, 0x3F); ^ Uncaught Error: Cannot read property 'print' of undefined at line 5 col 4 lcd.print("Hello World!"); ^
-
I was able to play raw audio files directly from the code and also from an sd card (on the original Espruino board) according to the instructions shown below but I have a speed issue.
Placing the raw audio inline it seems to be played at random speed. I should use the Base 64 option when converting? I believe I followed the instructions exactly but when the file is played the speed varies each time.
If I instead stream from the sd card it sounds like the file is played at very high speed. I believe I followed the instructions exactly but maybe I need to change some parameters in the streaming example?
-
-
Thank you very much for helping!
The pin mistake is embarrassing, unfortunately correcting it did not help, still same error. Does the 5v requirement mean I cannot use this display with the Pico? The datasheet seems to me to suggest that either 3.3v or 5v can be used but that’s probably just me not understanding how to read it. I tried connecting the HD44780 to an ESP32 as well as it has a 5v pin but no luck and also tried a Nokia 5110 to the Pico according to instructions but nothing happens. Probably just me doing something wrong but then maybe I could at least stop trying to connect a HD44780 to the Pico?
-
Hello,
I'm trying to connect a HD44780 LCD Display to a Pico but get the below error. I use two 4.7K resistors but maybe have connected them incorrectly (3.3-SDA,3.3-SCL)?
I'm using the native Web IDE on Windows 10.
Many thanks
I2C1.setup({scl:B6, sda:B7}); var lcd = require("HD44780").connectI2C(I2C1); lcd.print("Hello World!");
|_| espruino.com 2v07 (c) 2019 G.Williams >Uncaught InternalError: Timeout on I2C Write BUSY at line 2 col 13 g|4,g|4,g,g]) ^ in function "a" called from line 1 col 7 a(51,1);a(50,1);a(40,1);a(12,1);a(6,1);a(1,1);return{write:a... ^ in function "h" called from line 2 col 15 g|4,g|4,g,g])}) ^ in function "connectI2C" called from line 3 col 45 var lcd = require("HD44780").connectI2C(I2C1); ^ Uncaught Error: Cannot read property 'print' of undefined at line 4 col 4 lcd.print("Hello World!"); ^
-
-
-
Hi Gordon, many thanks for helping out - much appreciated, I'm trying to reply to your questions below;
Did you have a chance to try it on another computer?
- Yes, that is the first thing i tried. However, same result, it was not connecting to the other computer either.
If you open the Device Manager from Control Panel do you see anything listed?
Yes, screen shots attached.Do you remember if the Pico that didn't work was the second one you plugged in?
- The one that didn't work was the first one.
On the one that does work, what is the COMxxnumber that shows in the Web IDE?
- COM8
I believe it's easy enough to clear up though: https://superuser.com/questions/408976/how-do-i-clean-up-com-ports-in-use
- I uninstalled deive on COM8 and COM6 but the issue remains. The same Pico is recognized (now on COM3) but the other one is still not recognized in the IDE.
- Yes, that is the first thing i tried. However, same result, it was not connecting to the other computer either.
-
Hi Robin, many thanks for your reply! I have tried to answer your questions below.
Was this your intent?
- Sorry for being unclear. I first of course tried just to connect without pushing the button. When this did not work, I tried pushing the button as the troubleshooting guide suggests.
Which WebIDE is in use?
- Native
Is the intent just to connect to the WebIDE?
- Not sure I understand this question?
Was there any response in the L-Hand console window?
- No
On inspection of the WebIDE console, was there any detail there?
WebIDE >> Settings >> Console- Yes, but I don't know if it is relevant as there are no time stamps. Log file attached to this post.
May I ask which web site the purchase was made, and approximately what date?
- Pi Hut. I just received it.
- Sorry for being unclear. I first of course tried just to connect without pushing the button. When this did not work, I tried pushing the button as the troubleshooting guide suggests.
-
Hi,
I bought 2 Picos. The first one connects fine to my Windows 10 pc. The other one is not recognized. If I press the button while inserting, the leds pulse for around 5 seconds after which both red and green stay lit.
If I switch back to the first Pico that one works fine again. Any thoughts what may be wrong?Many thanks
I have not received the TTL USB adaptor yes but tried this;
I connected the Pixl.js to the ESP8266 Esp-01 like this;
Pixl.js <-> Esp01
GND <-> GND
3.3V <-> EN
3.3V <-> 3.3V
D0 <-> RX
D1 <-> TX
Then ran this;
The result;
However, when I then run this the Pixl.js just disconnects from my PC Espruino Web IDE bluetooth and enters into a boot loop..;