-
@Wilberforce @user59035 was the one wanting TouchOSC. I'm interested in Art-Net, using open torrent trackers to coordinate direct p2p communication between devices in different buildings UDP's a lot easier to do hole punching through NATs with than TCP, interested in using UDP broadcasts to do device discovery on host computers, and UDP broadcasts allow unmodified wireless APs to deliver realtime data unreliably, so messages don't get queued up causing latency, which can be super useful for robotics - if you were making a quadcopter for example, it's a terrible outcome if your control packets get backed up and the router delays sending up to date messages so it can redeliver irrelevant old ones first.
"If my company" again no, I'm a nonworker due to severe health problems. This is only hobby stuff. My entire income is welfare payments. Part of why I don't want to use the Pico is that it's relatively quite expensive for someone with very low income.
-
-
Looks like the Espressif SDK update has some UDP transmission fixes, so maybe that flow control issue is resolved now? http://bbs.espressif.com/viewtopic.php?f=46&t=1442
-
I don't think this is a good solution for Espruino, but this I2S DMA WS2812 driver is really neat: https://github.com/cnlohr/esp8266ws2812i2s
-
-
-
-
-
ESP8266 modules with pcb trace antennas have a range of about 0.35km, but tests on youtube indicate you can get a little over 4km range between an esp8266 module with trace antenna and a Ubiquiti NanoBridge M2 access point - these are simply fairly powerful wifi APs with a directional antenna. Some ESP8266 boards include a u/fl coaxial antenna connector, so you can plug in an external 2.4ghz antenna. If you put a directional antenna on each end, I bet you'd get some truly awesome range. That's how I'd try and do it.
Have you thought about using regular RC radio tech, like the kind used for remote control cars and stuff? It's quite resistant to interference, long range, and available very cheaply on sites like hobbyking. You might not need any microcontrollers at all!
-
-
-
I don't see any debug stuff coming out of the serial console. Loop seems to run pretty fast.
> s = getTime(); for(var i = 0; i < 500; i++) { : void(0); :}; e = getTime(); console.log("Seconds:" + (e-s) / 500); Seconds:0.00035071399 > s = getTime(); for(var i = 0; i < 500; i++) { : getTime(); :}; e = getTime(); console.log("Seconds:" + (e-s) / 500); Seconds:0.00046566599
-
Wow, GPIO is incredibly slow on this 9600baud build. I benchmarked running
digitalWrite(D5, 1)
and on average it takes 80ms to execute. It'll get a lot faster than that in the future, right?> s = getTime(); for (var i = 0; i < 25; i++) { : digitalWrite(D5, 1); :}; e = getTime(); console.log("Seconds:" + (e-s) / 25); Seconds:0.08226768
-
@tve NodeMCU and Arduino default to 9600, so do the official espruino boards. I'm uploading the 9600baud espruino firmware now and it takes about ten minutes. More of a go make some tea kind of wait than a go have a nap kind of wait.
It sounds like you must have another bottleneck than serial connection if your uploads are taking that long, even at 9600bd a kilobyte takes about one second to transfer, so a couple kb should be done in a couple seconds!
-
Wonderful! Thanks @Kolban! I'll head over to my craft lab tomorrow and give this a go! 💙
I'd like to see 9600 baud be the default on ESP8266, as it is more of a bootstrapping technology in my view - something you use to upload a telnet server if you want more speed or portability. It needs to be widely interoperable. Anything that makes the chip work with less stuff should be opt in - like could we have a function that sets the baud higher until reset? or some sort of autobauding like the chip's built in bootloader?
Considering the 9600 compatibility of the chip's bootloader, the entire espruino firmware could be installed through an audio jack, perhaps even just as an 8bit mono wav file (or flac if you're so inclined). If it were gzipped it would compress down quite well I think! Could be really cool, continuing the experiments with webpages talking to espruino devices, to be able to flash the firmware itself right off a tablet or even an iPod. Something I'd be curious to look in to for sure.
-
Hey there!
I'm having a bit of trouble getting started with Espruino on esp-12ex. I've run NodeMCU successfully on it in the past, but as I lack a suitable usb-serial adaptor currently, I've been accessing the chip via a little bluetooth adaptor, which seems to only be happy running at 9600 baud.
After a lot of confusion, it seems the ESP8266 port runs at 115200 by default, unlike the main espruino boards? I wonder if it's trivially easy for someone to pop out a 9600 baud build, or if perhaps that would be a more sensible default as it would be consistent with other boards and would enable interoperability with the audio jack serial stuff (which is super cool!)
Should have an FTDI cable in a couple of weeks if all goes to plan, but I'm super excited to get started on this ASAP, as I want to build a rapid prototype for a robotics project and confirm everything works well enough before ordering parts to make a whole lot of little IP networked stepper motors.
-
Fair enough