Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : olimex pico2
Author | Message | ||||
stanleyella Guru Joined: 25/06/2022 Location: United KingdomPosts: 2120 |
https://thepihut.com/products/olimex-rp2040-pico-pc-for-raspberry-pi-pico olimex dev board. it's brill but commercial and other pcb on forum but got to say imho it's very tidy. best pcb I've used as am vero/strip board fan. sd card reads, hdmi ok , well mode 1 flickers. usb kb ok ,3.5mm sound ok. it's brill with support... reset olimex little details. where is 5v vbus input pin to power pico and usb kb unless got headers? it's great with pico2/2350 |
||||
Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 6778 |
The micro USB socket on the Olimex is the 5V DC input to power it. It's connected directly to VBUS. The data pins on it aren't connected so it doesn't do anything else. With that connected you can use the USB on the Pico to power a USB hub when you are using the USB firmware. Did you check your Private Messages? . Edited 2024-09-25 07:53 by Mixtel90 Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
stanleyella Guru Joined: 25/06/2022 Location: United KingdomPosts: 2120 |
when using usb the usb to ttl 5v out pin powers the vbus which powers usb kb and the pico. the olimex board usb would not power a usb keyboard connected to the pico board usb. the 5v from usb to ttl must go to vbus pin 40 but no connection unless used a headeron that pin |
||||
Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 6778 |
The Olimex is designed to be powered from it's own USB socket. That is connected directly to VBUS (pin 40) on the Olimex so it powers the USB socket on the Pico. You can then use that in Host mode and plug a (non-powered) USB hub into it. Don't get power from the USB to TTL converter. You only need the data lines and GND. In this way the Pico is always powered from the Olimex only. You don't need headers. GP8, GP9 and GND are also available on the 10-pin connector on the Olimex so, if you connect the USB to TTL converter to those, you don't need headers for those either. Note - you never connect the USB on the Pico to the PC on a USB setup unless you are loading MMBasic into it, in which case you disconnect all other sources of supply. It's in Host mode so it won't work with a PC anyway. Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
stanleyella Guru Joined: 25/06/2022 Location: United KingdomPosts: 2120 |
using usb to ttl on olimex, use another usb to pc for power olimex and remove usb to ttl 5v from pin 40? that's 2 usb leads as another to usb to ttl cos I use it with mmedit and mmcc. I found no problems with using the usb to ttl 5v which is straight from pc usb. I use it for pico2 vga but a lcd board with a barrel 3.3v and 5v supply I didn't need the usb to ttl 5v. I'll try the the 10 pin plug with molex male to male and power olimex. thing is it's not broken as is. regards, stan |
||||
Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 6778 |
It all depends on where you feed the 5V in. If you are going to use a USB hub plugged into the Pico then the 5V has to go into VBUS (pin 40). You have no choice as it's the only way to power the hub. On the Olimex board you can do that in one of two ways: The USB socket on the Olimex itself or a header on pin 40. There's no other way without hacking the board. The +5V rail isn't accessible in any other way. If you aren't using a USB hub then you can power your 5V into VSYS. Well, you could but the only access is a header on pin 39. They don't bring it out. Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
stanleyella Guru Joined: 25/06/2022 Location: United KingdomPosts: 2120 |
hi Mick. didn't work pins 3 and 4 so back to headers but powering olimex from 5v usb not usb to ttl works .stan |
||||
Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 6778 |
From two of my earlier posts. Available on the connector are: PIN 1 3V3 2 GND 3 GP20 COM2 TX 4 GP21 COM2 RX 5 GP9 I2C SCL (with pull up) 6 GP8 I2C SDA (with pull up) 7 GP4 SPI MISO 8 GP7 SPI MOSI 9 GP6 SPI CLOCK 10 GP5 SPI CS I have the circuit here. :) --------------------------------- The 3-pin has GP0 & GP1 CON2 has GP2 & GP3 The 10-gin has GP4, GP5, GP6, GP7, GP8, GP9, GP20, GP21 The HDMI socket has GP10, GP11, GP12, GP13, GP15, GP15, GP16, GP17, GP18, GP19, GP26 Audio has GP27, GP28 The SD card has GP22, GP4, GP6, GP7 (it shares the SPI with the 10-PIN) . Edited 2024-09-26 02:44 by Mixtel90 Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
stanleyella Guru Joined: 25/06/2022 Location: United KingdomPosts: 2120 |
hi Mick..from you 3 GP20 COM2 TX 4 GP21 COM2 RX but OPTION SERIAL CONSOLE COM2,GP8,GP9 from reset olimex I'll try changing and using the 10 pin |
||||
Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 6778 |
CON2 is connector 2 on the Olimex. They put GP2 and GP3 on it and called them I2C1_SCL and I2C1_SDA. There is also DBG1, a 3-pin connector with GP0 and GP1 on it, labelled UART0_TX and UART0_RX. Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
stanleyella Guru Joined: 25/06/2022 Location: United KingdomPosts: 2120 |
appreciate much Mick, doin my head it works but using 10 pin 3 and 4 tx,rx they gp 20, gp 21? mine works. to use 10 pin I use OPTION SERIAL GP20,GP21 to use pins 3 and 4? while usb to ttl is still working . yeah, my head hurts using the 10 pin is not the end of the world. header pins work whale kipper whelk um in the eel side Edited 2024-09-26 06:00 by stanleyella |
||||
Plasmamac Guru Joined: 31/01/2019 Location: GermanyPosts: 554 |
How to connect a usb keyboard? Plasma |
||||
Plasmamac Guru Joined: 31/01/2019 Location: GermanyPosts: 554 |
.. Edited 2024-09-26 05:44 by Plasmamac Plasma |
||||
Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 6778 |
Pins 5 and 6 of the 10-pin will probably work fine as GP9 and GP8 respectively. The Olimex has 10K pullups on them, but they have those anyway when used for a PS2 keyboard. A USB-TTL converter would probably have no problem - and they are the standard default pins. Note though that GP8 and GP9 are COM2. when used like this. You can't also have COM2 on GP20 and GP{21. They can be I2C though, if you provide your own pull ups. Olimex's labelling is what they intended for Python. It has nothing at all to do with MMBasic. We can do what we like with the pins that aren't hard-wired to things. Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 6778 |
Do you mean to a Olimex, Plasma? Basically it's like all the others. Power has to be vie either the USB port on the Olimex or on a header pin on pin 40. You use a USB to TTL converter on a COM port to get the console connection. GP8 and GP9 are the standard pins. When you load the USB version of MMBasic the USB port on the Pico goes into Host mode and can't be used for the console. You then plug a passive (non-powered) USB hub into the Pico and plug your keyboard, mouse, game controller into that. Edited 2024-09-26 05:53 by Mixtel90 Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
Plasmamac Guru Joined: 31/01/2019 Location: GermanyPosts: 554 |
Thx Mick Plasma |
||||
stanleyella Guru Joined: 25/06/2022 Location: United KingdomPosts: 2120 |
use usb pico firmware and the usb becomes a usb kb port. but you can't use it .it flash or connect to pc. you need usb to ttl converter which you wire to serial tx/rx. it then works like the original usb get the usb version and flash, then the usb port is a usb keyboard connector but you'll need a usb adaptor. you need the usb to ttl to connect to pc. just wire to correct tx/rx pins. option list PicoMiteVGA MMBasic USB Edition 6.00.00b6 OPTION SERIAL CONSOLE COM2,GP8,GP9 'this is the usb to ttl for connecting to pc and 5v OPTION AUTORUN ON OPTION FLASH SIZE 4194304 OPTION COLOURCODE ON OPTION KEYBOARD UK OPTION CPUSPEED (KHz) 315000 OPTION HDMI PINS 1, 3, 7, 5 OPTION SDCARD GP22, GP6, GP7, GP4 OPTION AUDIO GP26,GP27', ON PWM CHANNEL 5 OPTION MODBUFF ENABLE 1 Edited 2024-09-26 07:44 by stanleyella |
||||
stanleyella Guru Joined: 25/06/2022 Location: United KingdomPosts: 2120 |
When you load the USB version of MMBasic the USB port on the Pico goes into Host mode and can't be used for the console. using mmcc the control panel works. you can use the pc keyboard instead of the usb one |
||||
Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 6778 |
If you are using a PC with Tera Term (or other terminal software) connected via the USB-TTL converter then it's the same. It's a console connection so it uses the console keyboard. However, unless you connect a DVI/HDMI monitor you have no graphics (because it's the console!). Incidentally, the console connection is at 15200 baud by default. It's not automatic like it is using the USB port. Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
al18 Senior Member Joined: 06/07/2019 Location: United StatesPosts: 205 |
A USB OTG hub can also be used to a connect a keyboard, such as this $5.95 one from Adafruit https://www.adafruit.com/product/2991 |
||||
Print this page |