Recent

Author Topic: using the raspberry pico to drive the electronics for a parcel delivery vault.  (Read 5222 times)

MiR

  • Sr. Member
  • ****
  • Posts: 274
Seems I am late to the party…

Nice idea, let me know if you need anything to interface the pico.

Pico-W is not happening anytime soon but there are cheap ESP32-c3 modules that can be interfaced easily to the pico for WiFi usecases, don‘t know why Rasperry Foundation had to make WiFi that complicated…

Michael

MiR

  • Sr. Member
  • ****
  • Posts: 274
 LILYGO® TTGO T-01C3 ESP32-C3 Development Board WIFI Wireless Bluetooth Module IPEX Antenna For ESP-01 With External Antenna Base
https://a.aliexpress.com/_EyAI3Ux

Thaddy

  • Hero Member
  • *****
  • Posts: 16190
  • Censorship about opinions does not belong here.
OK, ordered 2. Thx, Michael.
If I smell bad code it usually is bad code and that includes my own code.

dbannon

  • Hero Member
  • *****
  • Posts: 3156
    • tomboy-ng, a rewrite of the classic Tomboy
LILYGO® TTGO T-01C3 ESP32-C3 Development Board ....

Michael, are you suggesting using the LilyGo device, running Arduino software providing the wifi link, then talk to it, from a Pico, using I2c or some such ?  I don't see any data sheet about the LilyGo, just a schematic of the board ....

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

MiR

  • Sr. Member
  • ****
  • Posts: 274
This:

https://www.espressif.com/en/products/sdks/esp-at/overview

Is the documentation for the at commandset, you simply connect your pico over serial line to the esp module and can do https get requests with close to no effort and no load impact on the pico. Also no need for an arduino software in-between.
« Last Edit: May 12, 2024, 02:39:21 pm by MiR »


MarkMLl

  • Hero Member
  • *****
  • Posts: 8035
This:

https://www.espressif.com/en/products/sdks/esp-at/overview

Is the documentation for the at commandset, you simply connect your pico over serial line to the esp module and can do https get requests with close to no effort and no load impact on the pico. Also no need for an arduino software in-between.

I've done that using an 8266 and can confirm that it works. The one caveat is that I don't know how many subtly-different variants of the 8266 firmware are floating around, and have never established a definitive repository of rebuildable sourcecode. There's rumours that there are other half-completed implementations, e.g. to make an 8266 look more like a generic network device using the Packet Driver or whatever API.

Since we're talking about various devices, I'd throw in that I'm intermittently looking at a RISC-V based "MilkV Duo". This is really a very nice little board in "chewing gum" format for around £5, with a "big" core running Linux and a "little" core running Arduino etc. for realtime control. However it's got Ethernet rather than WiFi, so the same connectivity issues apply.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

MiR

  • Sr. Member
  • ****
  • Posts: 274
I‘d strongly advise against using esp8266 with at commandset when you require https, this can work but is both slow and not very reliable.

Modern esp32 chips like the c3 or c6 are a better choice.

Building custom at images is pretty straightforward and documented:

https://docs.espressif.com/projects/esp-at/en/latest/esp32/Compile_and_Develop/How_to_clone_project_and_compile_it.html


https://docs.espressif.com/projects/esp-at/en/latest/esp32/AT_Binary_Lists/index.html
« Last Edit: May 12, 2024, 03:18:57 pm by MiR »

Thaddy

  • Hero Member
  • *****
  • Posts: 16190
  • Censorship about opinions does not belong here.
The ones I order are actually a combination! of a Pico and an ESP32..
I read, for the Pico, but I was too fast, it includes a pico.... Hm, oh, well, it is cheap enough and there is a great instruction video on youtube. These also include a small color screen in one packet.

It has a party feature that I never expected: depending on the polarity of the usb-c cable it boots either into the pico or the esp32...Huh? I did not know that was possible, plug in the cable the other way and you have a different boot. I can't wait for these to arrive...

 LilyGO T-PicoC3
https://www.youtube.com/watch?v=k1GSylUR36Q
« Last Edit: May 12, 2024, 05:59:01 pm by Thaddy »
If I smell bad code it usually is bad code and that includes my own code.

MiR

  • Sr. Member
  • ****
  • Posts: 274
You mean this board:

https://www.lilygo.cc/products/t-pico?_pos=15&_fid=4a36353ca&_ss=c

I always wondered how those work and if the esp32 and the rp2040 can run at the same time and only usb is routed to either the one or the other...
 
You will find out soon enough!

The display is definitely only connected to the rp2040.


dbannon

  • Hero Member
  • *****
  • Posts: 3156
    • tomboy-ng, a rewrite of the classic Tomboy
Here‘s a minimalistic sample:

https://github.com/michael-ring/pico-fpcexamples/tree/picosdk1.5.1/esp_worldtimeapi

Thanks Michael, yep, esp_at_c looks like great solution, I did not realise there was so much cross over between the ESP32 and Pico world....
And the ESP32, Espressif documentation and approach is vastly better than RasPi's Pico !

Glad to see your development branch appearing on your github site too. Thanks indeed.

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

MiR

  • Sr. Member
  • ****
  • Posts: 274
Did you receive your boards? I also got one but I do neither see the com port of the c3 or the rp2040 on my mac....

Today I received this board:

https://www.aliexpress.com/item/1005005952730624.html

and it seems to work quite well...

Thaddy

  • Hero Member
  • *****
  • Posts: 16190
  • Censorship about opinions does not belong here.
Yes, two days ago. Need the weekend to set them up  :D
If I smell bad code it usually is bad code and that includes my own code.

MarkMLl

  • Hero Member
  • *****
  • Posts: 8035
I‘d strongly advise against using esp8266 with at commandset when you require https, this can work but is both slow and not very reliable.

In my context, it was a development board with connections for a Pico and an 8266 module (i.e. specifically not an ESP32) so basically what I was doing was getting the overall kit to an "as designed" state by adding the optional peripheral. I got it doing quite a lot including running Fuzix, but was hampered slightly by "less than standard" pin assignments for the memory card, console and so on. Hence...

Did you receive your boards? I also got one but I do neither see the com port of the c3 or the rp2040 on my mac....

Today I received this board:

https://www.aliexpress.com/item/1005005952730624.html

and it seems to work quite well...

Is that actually a Pico as designed (and trademarked) by the RPi Foundation? The thing that bothers me there is the /precise/ behaviour of the WiFi, access to the software-controlled LED and so on.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

 

TinyPortal © 2005-2018