-
Yeah I finally got it to work. There are a few issues I had. On these boards I had to use the TOP RIGHT usb port. When I downloaded the ST Flash Loader Demonstrator I was trying to get the STMicroelectronics com driver to work and it did not at all. The driver that worked best for me was this Prolific Driver. Its a Prolific Driver Version 3.2.0.0 and is dated at 7/31/2007
You have to manually update the Driver. Similar to this video
although after that driver was installed on my Windows 7 computer it was named plainly as "USB-to-Serial" until I re-updated the Driver. -
ok thanks and I did not see this explanation until now
-
-
-
Guys can someone please post a YouTube video from the ground up on either Windows 7 or 8. I do now know what I am missing and this is just getting aggravating. I have tried 3 different computers. I have installed windows 8 dpinst_amd64.exe. Connected on the top left of the HY32. In boot mode. Thanks
-
-
-
-
Tried a few combinations including writing cs to 0.
digitalWrite(B1,1); digitalWrite(B10,1); SPI1.setup({sck:A5, miso:A6, mosi:A7, baud:1000000 }); var max=require("MAX31855").connect(SPI1,B10/*CS*/); console.log(max.getTemp()); E.connectSDCard(SPI1,B1/*CS*/); console.log(require("fs").readdir());
>echo(0); { "temp": 63.5, "fault": 0 } ERROR: Unable to mount SD card : NOT_READY undefined =undefined >digitalWrite(B1,0) =undefined >digitalWrite(B10,0) =undefined >digitalRead(B1) =1 // this is the sd card that we are having trouble with >digitalRead(B10) =0 >console.log(max.getTemp()); { "temp": 26, "fault": 0 } =undefined >console.log(require("fs").readdir()); ERROR: Unable to mount SD card : NOT_READY undefined =undefined >digitalWrite(B1,1) =undefined >digitalWrite(B10,1) =undefined >digitalRead(B10) =1 >digitalRead(B1) =1 >console.log(max.getTemp()); { "temp": 26.25, "fault": 0 } =undefined >console.log(require("fs").readdir()); ERROR: Unable to mount SD card : NOT_READY undefined =undefined >digitalRead(B1) =1 >digitalRead(B10) =1
-
Should we not be able to have multiple spi devices on the same channel and separately called (CS) ? I have a temperature sensor MAX32855 and a sd card on a Pico. The intent is to have a few temperature sensors recording data to the sd card. Anyways here is the code:
SPI1.setup({sck:A5, miso:A6, mosi:A7, baud:1000000 }); var max=require("MAX31855").connect(SPI1,B10/*CS*/); console.log(max.getTemp()); E.connectSDCard(SPI1,B1/*CS*/); console.log(require("fs").readdir());
The problem is that the temps usually read fine (though sometimes they give random really high readings?) but when I access the sd card it errors
ERROR: Unable to mount SD card : NOT_READY undefined
As soon as I disconnect the MAX31855 then the sd card works fine.........??
-
-
-
-
So I have my new ESP8266 and it is up and running. Couple problems. I'm still having problems with the "AT wasn't found". Happens way too often and I have a great internet connection.
The second part is creating an access point. This works:
Serial2.setup(115200, { rx: A3, tx : A2 }); var wifi = require("ESP8266WiFi").connect(Serial2, function(err) { if (err) throw err; wifi.reset(function(err) { if (err) throw err; console.log("Connecting to WiFi"); wifi.createAP("Test", "guest", 1, "wep", function(err) { console.log("Connected"); require("http").createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}); res.write('Hello World'); res.end(); }).listen(80); }); }); });
But this is having issues:
function onPageRequest(req, res) { var a = url.parse(req.url, true); res.writeHead(200, {'Content-Type': 'text/html'}); res.write('<html><body>'); res.write('<p>Pin is '+(BTN.read()?'on':'off')+'</p>'); res.write('<a href="?led=1">on</a><br/><a href="?led=0">off</a>'); res.end('</body></html>'); if ("led" in a.query) digitalWrite(LED1, a.query["led"]); } Serial2.setup(115200, { rx: A3, tx : A2 }); var wifi = require("ESP8266WiFi").connect(Serial2, function(err) { if (err) throw err; wifi.reset(function(err) { if (err) throw err; console.log("Connecting to WiFi"); wifi.createAP("Test", "guest", 1, "wep", function(err) { console.log("Connected"); require("http").createServer(onPageRequest).listen(80); }); }); });
says this:
Uncaught Error: Field or method "led" does not already exist, and can't create it on null at line 8 col 57 if ("led" in a.query) digitalWrite(LED1, a.query["led"]);
-
-
-
-
-
Tried that a few times. I had it working a few weeks ago but it took me a day and a half to find some driver file that happened to work. Then my 3D printer showed up and I wanted to reset the windows computer to its factory state to get all the slow BS off of it. (my normal computer is a Chromebook) I sure wish I saved that file first because I can not duplicate whatever I did. Pulling my hair out! Its a HP laptop with Windows 7. Few years old..... Trying to re-flash with the network drivers.......
-
Hey guys.
Was having a similar problem. After I shortened a few wires and moved the 1117 right in close to the Pico would it start returning anything of value. (on a bread board)
My mfg says its 9200 but only 115200 would not return gibberish. But my pico only works on every other try... sometime with the need of a reset(). (code run from the right side of the console). The following is where I am getting stuck...... don't know where the sdcard bit is coming from??
ERROR: SD card must be setup with E.connectSDCard first WARNING: Module "AT" not found =undefined Uncaught Error: Field or method "connect" does not already exist, and can't create it on undefined at line 1 col 22 {h.at=d=require("AT").connect(a);require("NetworkJS").create... ^ in function "connect" called from line 2 col 58 function(err) {if (err) throw err;wifi.getAPs(print);});
-
-
-
-
Well I did find a work around. Its not perfect but it works well enough.
On google script use the following function. It can then be called by a Google script project trigger. You can expand the code to insert the data into the spreadsheet as a database.function myFunction() { var response = UrlFetchApp.fetch("IP Address"); Logger.log(response.getContentText()); }
I used the "Hello World" server example from the CC3000 page. I then set port forwarding on my router for the espruino server address through port 80. When called the Logger reports "Hello World"!!
I found a great way to get data from Espruino into Google Spreadsheets using PushingBox! And here
is a great video to boot (Although its with Arduino) about 2 minutes in.