|
Forum Index : Microcontroller and PC projects : Pico Computer 3 - One board to rule them all
| Author | Message | ||||
| cdeagle Senior Member Joined: 22/06/2014 Location: United StatesPosts: 273 |
Is it possible to plug the PicoMite 3 into a PC and use TeraTerm and MM Edit 5? |
||||
| phil99 Guru Joined: 11/02/2018 Location: AustraliaPosts: 3479 |
It has a built-in serial to USB adapter (U7 - CH340) for the serial console, connected to COM2 on GP8 & 9. The console USB-C socket (USB2) is near the HDMI socket. . Edited 2026-11-11 07:49 by phil99 |
||||
TassyJim![]() Guru Joined: 07/08/2011 Location: AustraliaPosts: 6647 |
Depending on which firmware you have loaded, MMEdit will connect to the USB "firmware update" port just like a "normal" picomite. If you load one of the standalone firmwares, you use the serial-USB adapter which is part of the PC3. In this case you have to be sure to use the correct baud rate. Usually 115200 Jim VK7JH MMedit |
||||
| cdeagle Senior Member Joined: 22/06/2014 Location: United StatesPosts: 273 |
Thanks guys. That worked especially when I turned on the power switch. Call me old fashioned. |
||||
| Volhout Guru Joined: 05/03/2018 Location: NetherlandsPosts: 6336 |
@Peter, After some twiddling around with the PC3, in light of the potential official release of the PC3, I would like to suggest some changes to it. 1/ Remove the power button (you have to pull out the USB-C to get to it, and then the unit is already off). 2/ The expansion header sticks out, and may cause others grief, as it did me once (I pushed the unit accidentally against a (metal) isolated coffee mug, causing a reboot. I now have red isolation tape over it (I tried a non-connected female connector, but got in conflict with the HDMI). I see 4 options 2a/ Move the whole header footprint 3mm inwards, so the pins stay inside the bezel surface of the housing. 2b/ Move the HDMI away from the header, so you can use a boxed (molex) header as with CMM2. This can only be done with the power button removed. 2c/ Use a female header (this makes the unit incompatible with the units built if you design peripherals). 2d/ Mount a 26pin boxed header, not using pins 27..30 (closest to the HDMI). This essentially removes +5V and system I2C from the header. I think option 2a has least impact. Regards, Volhout Edited 2026-11-18 18:06 by Volhout PicomiteVGA PETSCII ROBOTS |
||||
| Volhout Guru Joined: 05/03/2018 Location: NetherlandsPosts: 6336 |
@Peter, Just a generic question. My typical development setup uses a linux PC (desktop), attached to a 7 port hub (actually a pretty old design, so absolutely not USB-3). The hub is on the desk, connected to rear PC USB port. To that hub I connect my picomites and CMM2 (not at the same time), other ports connect occasional USB sticks, but the hub is mainly there to avoid me bending over the PC to blindly find a free rear USB port. When I connect the pico (VGA/GameMite) or CMM2, it shows up as a device in linux (ls /dev/tty*), either as ttyUSB0 (CMM2) or ttyACM0 (pico). This is pico and CMM2. But now to the PC3 (V7.00.00 release). The PC3 has a CH340 serial usb converter on the USB port. When I connect it to the PC itself, it shows up as ttyUSB0. That is correct. But when I connect it to the hub, it does not connect at all. I am puzzled why this is. I am not looking for a solution (it is simple to plug PC3 directly in the PC, or use a USB A-A extension cable) but have no idea why it would not show through the hub. It is not the USB voltage (this hub is modified, to remove all +5V diodes from it since voltage drop was too much). I have checked the PC3 gets 4.96V at it's USB input. Do you have any idea ? Volhout Edited 2026-11-23 20:09 by Volhout PicomiteVGA PETSCII ROBOTS |
||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 12327 |
The firmware version doesn't matter here. The CH340 is a separate chip and the PC talks to it directly, so it would enumerate even with a blank RP2350. The PC3's CH340 circuit follows the datasheet (CH340C at 3.3 V, USB‑C with 5.1k CC resistors), so the problem is margin between this board and this hub. Two things make the PC3 different from your Pico and CMM2: The CH340C has no crystal. Its clock comes from an internal, factory‑trimmed oscillator. That is within the USB full‑speed tolerance, but with less margin than a crystal‑based device like the RP2040. Old 7‑port hubs are usually two 4‑port hub chips inside, so some ports have a second hub chip in the path. Something close to the edge can work on the PC's own port and fail through the hub. The whole PC3 runs from that one cable. That includes the RP2350, HDMI, WiFi, the board's own USB hub and anything plugged into it. The CH340 gets its 3.3 V from an AMS1117 behind the power switch, and that regulator needs about a volt of headroom. Your 4.96 V is a meter average. At plug‑in, the board starts HDMI and the WiFi radio at the same moment the PC is enumerating the CH340. A short dip through the extra resistance of the hub could brown it out at exactly the wrong time. If the 4.96 V was measured with the PC3 switched on and running, this one is less likely. To find out which it is, run sudo dmesg -w and then plug the PC3 into the hub: Nothing at all: the hub never saw the device attach. That points to power. If the hub flagged the port for over‑current, dmesg will say so too. device descriptor read/64, error -71 or device not accepting address: the device was seen but its data is getting corrupted. That points to timing margin (1). It attaches as ttyUSB0 and drops straight away: that's a brown‑out (2). Two more quick tests: Try every port on the hub. lsusb -t shows whether there are two hub chips inside and which ports are on each. Unplug anything from the PC3's own USB ports. |
||||
| Volhout Guru Joined: 05/03/2018 Location: NetherlandsPosts: 6336 |
Hi Peter, This is the dmesg output of a succesfull connect, and after 3 seconds a disconnect because I pulled the USB cable off. Directly in the PC port. Using a USB-C .... USB-A cable. [15449.481814] ch341 1-9:1.0: ch341-uart converter detected [15449.483498] usb 1-9: ch341-uart converter now attached to ttyUSB0 [15469.720637] usb 1-9: USB disconnect, device number 30 [15469.721215] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0 [15469.721281] ch341 1-9:1.0: device disconnected This is the output of a failing connect, through the hub. [15503.377312] ch341 1-1.4:1.0: ch341-uart converter detected [15503.378110] usb 1-1.4: ch341-uart converter now attached to ttyUSB0 [15503.924272] input: BRLTTY 6.6 Linux Screen Driver Keyboard as /devices/virtual/input/input21 [15504.195793] usb 1-1.4: usbfs: interface 0 claimed by ch341 while 'brltty' sets config #1 [15504.196825] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0 [15504.196886] ch341 1-1.4:1.0: device disconnected But there is something else that is strange. When I connect the PC3 to the hub using the hub's USB-A connector, it does not connect. The hub is marked as a USB 2.0 hub. When I leave the USB-A side of the cable in the hub, and connect the PC3 through it's USB-C connector, it connects flawless. On dmesg it also gives a simlar text as using the PC port directly. Volhout P.S. looked at the schematics, can only conclude that it has something to do with the connector design. In a USB-A both VCC and GND make contact prior to the D+/D-. In a USB-C ground precedes VCC. Edited 2026-11-23 22:22 by Volhout PicomiteVGA PETSCII ROBOTS |
||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 12327 |
Your logs explain it, and it isn't the connector. Compare the two disconnects: Direct to the PC: you get usb 1-9: USB disconnect, device number 30. That's the device leaving the bus when you pulled the cable. Through the hub: there's no such line. The CH340 enumerated correctly, the ch341 driver bound to it and ttyUSB0 was created. So power, signalling and the connector all worked. Then input: BRLTTY 6.6 ... shows brltty starting, and interface 0 claimed by ch341 while 'brltty' sets config #1 shows it taking the interface. That forces the ch341 driver off, and ttyUSB0 disappears less than a second after it appeared. The device is still connected, just with no serial driver. brltty is the daemon for braille displays. Some braille displays have a CH340 inside, so brltty's udev rules treat every 1a86:7523 device (the CH340's USB ID) as a possible braille display and try to take it over. This is a well‑known annoyance on Ubuntu and Debian with Arduino clones and any other CH340 board. Your Picos use CDC‑ACM, and your CMM2 presumably uses a different bridge chip, which is why only the PC3 is affected. Plug order and connector type can't explain it, because by the time brltty acts the device has been fully enumerated either way. Whether brltty fires depends on udev and systemd timing. If you repeat each method a few times, I'd expect the "good" way to fail sometimes too. If you don't use a braille display, sudo apt remove brltty fixes it for good. Alternatively, comment out the 1a86/7523 entry in brltty's udev rules file (usually /usr/lib/udev/rules.d/85-brltty.rules). Edited 2026-11-23 22:48 by matherp |
||||
| Volhout Guru Joined: 05/03/2018 Location: NetherlandsPosts: 6336 |
Thanks Harm PicomiteVGA PETSCII ROBOTS |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2026 |