News for hackers. Stuff that matters.
Re:Show HN: PicoVGA Library – VGA/TV Display on Raspberry Pi... by westurner on Sunday March 12, 2023 @10:25AM (#35120403)
TV/VGA + Serial Console on an RP2040 would be cool.

- rs232

- UART

- USB-TTL w/ configurable (3.3v/5v) voltage levels

- (optional) VGA output

- (optional) WiFi (RP2040W)

The OpenWRT hardware/port.serial wiki page explains how to open a serial console with screen and a tty /dev; and about 3.3V/5V bricking a router and/or the cable: https://openwrt.org/docs/techref/hardware/port.serial#use_yo...

PiKVM may have console support but that's not on $5 RP2040 with or without low-level WiFi

"Raspberry Pi Pico Serial Communication Example (MicroPython)" https://electrocredible.com/raspberry-pi-pico-serial-uart-mi...

> The RP2040 microcontroller in Raspberry Pi Pico has two UART peripherals, UART0 and UART1. The UART in RP2040 has the following features: [pinout]

Re:Show HN: PicoVGA Library – VGA/TV Display on Raspberry Pi... by westurner on Sunday March 12, 2023 @10:57AM (#35120757)
> - RS232

RS232: https://en.wikipedia.org/wiki/RS-232

Serial Port: https://en.wikipedia.org/wiki/Serial_port

> - UART

UART: Universal Asynchronous Receiver Transmitter: https://en.wikipedia.org/wiki/Universal_asynchronous_receive...

> - USB-TTL w/ configurable (3.3v/5v) voltage levels

USB-to-serial adapter: https://en.wikipedia.org/wiki/USB-to-serial_adapter

> Most commonly the USB data signals are converted to either RS-232, RS-485, RS-422, or TTL-level UART serial data.

- SunFounder Thales Pi Pico Kit > Components > Slide Switch, Resistor, : https://docs.sunfounder.com/projects/thales-kit/en/latest/co... Kepler has the 2040W: https://docs.sunfounder.com/projects/kepler-kit/en/latest/

/? how to limit voltage to 3.3v: https://www.google.com/search?q=how+to+limit+voltage+to+3.3v

- Zener diode > Voltage shifter: https://en.wikipedia.org/wiki/Zener_diode#Voltage_shifter

- Voltage regulator > DC voltage stabilizer: https://en.wikipedia.org/wiki/Voltage_regulator#DC_voltage_s...

- TIL electronics.stackexchange has CircuitLab built-in: https://electronics.stackexchange.com/questions/241537/3-3v-... . Autodesk TinkerCAD is a neat, free, web-based circuit simulator, too; though it supports Arduino and bbc:micro but not (yet?) Pi Pico like Wokwi.

There is at least one RP2040 JS simulator:

Wokwi appears to support {MicroPython, CircuitPython,} on {Pi Pico} and also Rust on ESP32:

Wokwi > New Pi Pico project: https://wokwi.com/projects/new/pi-pico

Wokwi > New Pi Pico + MicroPython project: https://wokwi.com/projects/new/micropython-pi-pico

wokwi/rp2040js : https://github.com/wokwi/rp2040js

https://www.hackster.io/Hack-star-Arduino/raspberry-pi-pico-...

> - (optional) WiFi/Bluetooth (RP2040W Pi Pico W)

/? "pi pico" bluetooth 5.2 [BLE] https://www.google.com/search?q=%22pi+pico%22+bluetooth+5.2 :

- From https://www.cnx-software.com/2023/02/11/raspberry-pi-pico-w-... :

>> The Raspberry Pi Pico W board was launched with a WiFi 4 and Bluetooth 5.2 module based on the Infineon CYW43439 wireless chip in June 2022

bluekitchen/btstack is the basis for the Bluetooth support i Pi Pico SDK 1.5.0+: https://github.com/bluekitchen/btstack

> MicroPython

awesome-micropython: https://github.com/mcauser/awesome-micropython

https://github.com/pfalcon/awesome-micropython :

- There is a web-based MicroPython REPL, and it only works over HTTP due to WebSockets WSS, so it's best to clone that file locally: http://micropython.org/webrepl/ https://github.com/micropython/webrepl/

awesome-circuitpython: https://github.com/adafruit/awesome-circuitpython

- microsoft/vscode-python-devicesimulator lacks maintainers and Pi Pico Support: https://github.com/microsoft/vscode-python-devicesimulator/w...

https://vscode.dev/ is the official hosted copy of VSCode as WASM in a browser tab. YMMV with which extensions work after compilation to WASM and without WASI (node/fs,) in a browser tab.

From "MicroPython officially becomes part of the Arduino ecosystem" (2022) https://news.ycombinator.com/item?id=33699666 :

> [in addition to the Arduino IDE support for Pi Pico now] For VSCode, there are a number of extensions for CircuitPython and MicroPython:

> joedevivo.vscode-circuitpython: https://marketplace.visualstudio.com/items?itemName=joedeviv...

> Pymakr https://github.com/pycom/pymakr-vsc/blob/next/GET_STARTED.md

> Pico-Go: https://github.com/cpwood/Pico-Go

https://scratch.mit.edu/ has bbc:microbit (and LEGO Boost) extensions when you click plus at the lower left; but not (yet?) Pi Pico support: https://github.com/LLK https://github.com/LLK/scratch-gui/commit/421d673e714a367ff2... https://github.com/microbit-more/mbit-more-v2

Re:Show HN: PicoVGA Library – VGA/TV Display on Raspberry Pi... by wvenable on Sunday March 12, 2023 @01:51PM (#35123514)
The reason for this port is that I'm using PicoVGA as a VGA terminal for an 8bit retro computer. I'm using USB host mode on the Pico for keyboard and mouse input. I found a Pico W for sale for a reasonable price + shipping so now I can add wifi support.
Re:Show HN: PicoVGA Library – VGA/TV Display on Raspberry Pi... by westurner on Sunday March 12, 2023 @01:59PM (#35123666)
Can it run a ~GNUscreen text console attached to a serial port attached to pins on the other side of the Pico, and maybe a BLE keyboard/controller? (And how, while I'm at it; Thonny has an AST parse tree menu item)
Re:Show HN: PicoVGA Library – VGA/TV Display on Raspberry Pi... by wvenable on Sunday March 12, 2023 @02:11PM (#35123856)
I don't see why not. Pico has a few dedicated UART pins. Bluetooth support is pretty new, though.
Re:Show HN: PicoVGA Library – VGA/TV Display on Raspberry Pi... by westurner on Sunday March 12, 2023 @02:18PM (#35123969)