pxt-adafruit icon indicating copy to clipboard operation
pxt-adafruit copied to clipboard

wifi sockets

Open ladyada opened this issue 7 years ago • 8 comments

i was cleaning up my filesystem and noticed i had an old idea/design for a CPX bolt-on that would add WiFi

in short - i think PXT w/ internet would be neat. BUT the low cost ESP family doesnt have native USB or a lot of pins. i suppose we could make an mbed bootloader for ESP32 but i'm still seeing some issues with that chip (e.g. no neopixel support, i2c iffy) altho i could see that stuff being resolved. maybe having some sort of 'bolt on' kit for CPX/microbit could work where it gives you a sockets pipe thru an ESP8266?

we could use seesaw to give us a I2C <-> UART interface (0.50 cent chip with a huge amount of memory for buffering UART data) and we could use AT commandset? side benefit is you can use it to load new firmware on over I2C too. there's a somewhat working AT commandset for ESP right now. but its old, and isn't awesomepants. cell modules have a nicer AT commandset that could be ported to ESP

something else?

ladyada avatar May 26 '18 19:05 ladyada

We have seesaw supported in MakeCode, does this open the door to all these improvements?

pelikhan avatar Jun 08 '18 15:06 pelikhan

hardware wise, it would just do the underlying data couriering. that's not the hard part. hard part is having socket/https supported in makecode/codal natively basically, was there every a plan to IoTify MakeCode? i dont think its anytime soon but if it were, i have a use for it :)

ladyada avatar Jun 08 '18 15:06 ladyada

I wonder if James looked into it at some point. I think this is probably something that community/partner should build as a package.

pelikhan avatar Jun 08 '18 15:06 pelikhan

Speaking of seesaw, you should now be able to port seesaw-based CircuitPython libraries to makecode fairly easily.

pelikhan avatar Jun 08 '18 15:06 pelikhan

kk - we have a couple seesaw-based feathers but crickit is the big'un.

ladyada avatar Jun 08 '18 15:06 ladyada

This idea morphed into the Esp32SPI bridge?

pelikhan avatar Mar 13 '19 06:03 pelikhan

right now yep all we have is this SPI based code https://github.com/ladyada/Adafruit_CircuitPython_ESP32SPI you need 4 pins (SPI) + 1 busy state and 1 reset pin

ladyada avatar Mar 13 '19 19:03 ladyada

(id like to look at i2c slave for ESP32 but given the prediliction for the chip to go off into space, that may not be possible)

ladyada avatar Mar 13 '19 19:03 ladyada