-
-
Is there any way to get OneWire and BLE reliably work together?
Using a Pixl with 2v08.188, have three DS18B20 attached to A0. If Bluetooth is connected, mostly only 0 or 1 sensor are detected, and there are a bunch ofnull
values returned when reading temperature.
Tested with Pixl on serial, and with an Espruino Wifi, and all sensors are detected, and almost nonull
values returned.If I'm right, OneWire is done in software, and I assume BLE communication is interfering with that, right? Is there anything that could improve? Do the coding, and disconnect & disable BLE to run the code?
And other question: Assuming I'm not using BLE while running the code, what are my chances of reading multiple DS18B20 and reading accelerometer and writing to SD card together? Ok, let's just try it :D
Code is below:
var ow = new OneWire(A0); //R: VCC, G: Gnd, Y: Data var sensors = []; function scan(){ sensors = ow.search().map(function (device) { return require("DS18B20").connect(ow, device);}); } setInterval(function() { sensors.forEach(function (sensor, index) { sensor.getTemp(function (temp) { console.log(index, sensor.sCode, ": " + temp + "°C"); }); }); }, 1000); setTimeout(scan, 1234);
-
Found this comment at Internet / Transferring files:
Note: by default .pipe will use a relatively small chunk size (the
amount of data read and written in one go). Replacing f.pipe(res) with
f.pipe(res, {chunkSize:512}); will drastically increase file transfer
speeds as it better matches the block size of SD cards. -
There is a box/case for the Pico here: https://github.com/espruino/EspruinoBoard/tree/master/boxes
No external cable connection, but the lid seems to be separate piece, so you can modify it. -
First, you can compile javascript to C: https://www.espruino.com/Compilation That might help. Or haven't seen what is exactly slow, but there might be room for some optimization.
If you have some functionality that is not supported by the espruino Js -> C compiler, you can add your own C code: https://github.com/espruino/Espruino/blob/master/libs/README.md
If you want to do 100% custom code, Nordic semi's website is your best bet I guess: https://www.nordicsemi.com/Products/Low-power-short-range-wireless/nRF52832
-
-
Hi, I guess http://www.espruino.com/Graphics would be a good start, there is some info at Images / Bitmaps chapter.
There is also an image converter http://www.espruino.com/Image+Converter to make converting images easier. -
-
-
-
I think you can do HID both with USB HID, or Bluetooth HID. Most likely all you have to do is figure out the right keypress, and done :)
-
Looks like you can ask for any voltage using something like https://www.onsemi.com/products/interfaces/usb-type-c/fusb302
In case you missed it on hackaday :) -
-
-
-
If you can connect to a different characteristic, and send the "commands" there, I think you should define a custom characteristic for controlling the car. NRF.setServices, and handle the
onWrite
event.
I imagine pretty similar to what you did previously.
And since payload for one command would be less than the packet size, the whole command arrives as one unit, command handling would be extremely simple, no need for buffering or anything like that. And not "polluting" the Nordic Uart with car control commands. -
- "Same low-power LCD" - can we go a bit higher in resolution? Maybe a color memory LCD or something like that? Or would that increase price or energy consumption a lot?
- "Arduino ICSP/SPI connector" - what's that? Or you mean SWD?
- "USB-C" - Still, get a quote for that, would feel more up to date. Seeed's latest Seeduinos all seem to have Type-C as well.
- Adding a Qwiic connector - Sparkfun "standardized" this, but seems like Adafruit adds it to their boards now, calling it STEMMA QT sometimes. Compatible with GROOVE as well with an adaptor cable. I personally don't have those, but would allow just plug&play I2C.
- SPI flash or uSD card socket - yes please :)
- "Same low-power LCD" - can we go a bit higher in resolution? Maybe a color memory LCD or something like that? Or would that increase price or energy consumption a lot?
-
IIRC Pine64 was giving away these 5$ devboards to almost anybody who asked for it and had enough (don't know what's enough) open source contributions at the time of announcement.
I think (this might sound bit negative, but) doing low-level stuff on Risc-V appeals to the hardware nerds. And to people who want a "blob free" wifi chip. To use it commercially I think you would need to certify both BLE and Wifi, so a company would need to dump lots of resources into software and certifications. But still certifying a fully open source driver could be hard, since how would you limit emission power, if everything is open and documented?As Gordon said, this chip's main selling point is it's price. A product with it probably could work, if the chip and software is good enough to do everything, BLE, Wifi, https with some certificate validation, usable ADC and regular peripherals, low enough power consumption. And a good enough software stack to do all these and run the main application at the same time?
Oh, and let's not forget W600 (Manufacturer's site is at https://w600.chip.haus): A cortex-M3 wifi chip, ~1€ +shipping at Aliex in an ESP-01 like formfactor. Made some noise about a year ago, but I think it didn't really take off. The W600 Pico does have micropython, but it does't have enough flash to do https, so what's the point?
-
You could start with the Espruino Flag Raiser app
-
There are a bunch of ready-made ESP32 boards with lora chips. Come in handy, because first you have a mostly self-contained devboard some even have a small display and/or battery connector. Second because there are arduino samples for them, so you can verify with arduino samples if you are stuck :)
But of course there as a drawback of long shipping time, and you might not get what you expect.RFM96 (IIRC I tested, and does work with the Espruino library) from Hope RF is I think available from lots of "western" suppliers, if you want something quickly.
-
-
-
You have to enable "Experimental Web Platform features" to get access to web serial. Go to chrome://flags/#enable-experimental-web-platform-features to do it.
BTW, right now I can't connect to the Espruino Wifi with https://www.espruino.com/ide/ 0.74.3, I get this error in the console:
Serial> ERROR: TypeError: Failed to execute 'open' on 'SerialPort': required member baudRate is undefined.
(Win10, same behaviour in latest Edge and Chrome and Vivaldi. IIRC it did work at least in some of them) -
First I would try to start the Espruino Wifi without any code: http://www.espruino.com/Troubleshooting#on-espruino-pico-wifi
Bluetooth Long Range / coded phy is not available on the nRF52832. Maybe you confused it with the nRF52833 (three at the end).
Or 52811, 52820, 52840, 5340, couple of chips were announced since the 52832 :)