![]() |
Forum Index : Microcontroller and PC projects : PicoMite Alpha Firmware - a27 onwards - starting on displays
![]() ![]() ![]() ![]() |
|||||
Author | Message | ||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4240 |
OK, it's not a transistor it's a voltage regulator and the IC is a level converter ... so those ones are for running an SD card from the 5V outputs of an Arduino I guess? Best wishes, Tom MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 9992 |
Please try a33 for SDcard. I've set it to bitbang SDcard but SPI LCD on the same pins. It automatically changes mode depending on use PicomiteV5.07.00a33.zip |
||||
Mixtel90![]() Guru ![]() Joined: 05/10/2019 Location: United KingdomPosts: 7458 |
Wow... Apparently some of the SanDisk cards are rated for a max of 100mA during write. It varies with card size, manufacturer, type/model and phase of the moon ... So yes, Peter, your little filter looks like a good idea. :) @Tom The passive component ones look ok. I doubt if the ones with the reg and level shifter will work. I'm using one of the highly luxurious types that Peter originally used, but even cheaper 'cos I missed off the bits of wire, the capacitor and the two outside pins (I just happened to have a bit of pin strip the right length). :) Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
phil99![]() Guru ![]() Joined: 11/02/2018 Location: AustraliaPosts: 2407 |
"I doubt if the ones with the reg. and level shifter will work." It may be worth a try if you have one, as I am using one on an MX170 and powering it from 3.3V. Using Peters CFunction there are no problems with any of the SD cards I have. Edit. The reg. wont be regulating but may be acting like Peters 2R2 resistor in conjunction with its input and output caps. Edited 2021-06-22 22:02 by phil99 |
||||
Mixtel90![]() Guru ![]() Joined: 05/10/2019 Location: United KingdomPosts: 7458 |
Some SD cards are rated to work down to 2.7v so if the reg is a half decent LDO type they might be ok from 3.3v input. The level shifter is a bit of an unknown. As you say, it's definitely worth trying one if you have it. :) Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
Volhout Guru ![]() Joined: 05/03/2018 Location: NetherlandsPosts: 4811 |
To continue MIXTEL's work.... picomite doc a33.zip PicomiteVGA PETSCII ROBOTS |
||||
disco4now![]() Guru ![]() Joined: 18/12/2014 Location: AustraliaPosts: 962 |
Now works for me. Did not read SDCARD before when LCDPANEL connected. Latest F4 Latest H7 FotS |
||||
lizby Guru ![]() Joined: 17/05/2016 Location: United StatesPosts: 3298 |
No change for me with a33. >PicoMite MMBasic Version 5.07.00a33 Copyright 2011-2021 Geoff Graham Copyright 2016-2021 Peter Mather >OPTION LIST OPTION SDCARD GP5, 10 OPTION SYSTEM SPI GP2,GP3,GP4 OPTION LCDPANEL ILI9341, LANDSCAPE, 26, 25, 24 > files Error : SD Card not found "files" works reliably when the LCD is not plugged in. From the pico-datasheet: "If the USB port is the only power source, VSYS and VBUS can be safely shorted together to eliminate the Schottky diode drop (which improves efficiency and reduces ripple on VSYS)." I tried that. No difference between a32 and a33. Next I'll try the separate power supply with Schottky diode on VSYS. (But I don't understand why the USB power should be insufficient, since it provides power for this and more with an F4. I have a USB voltage and current display module inline with the USB to the PicoMite. It has a resolution in 10ths of an amp (and who knows what accuracy). Without the LCD it shows zero tenths to 50mA. With the LCD it pretty much pegs at 50mA. With the ESP-01 plugged in (3v3 regulated down from VBUS 5V with LD33) it fluctuates by the second between 50mA, 80mA, and 110mA.) Removing the ESP-01 makes no difference with respect to "files". ~ Edited 2021-06-23 00:46 by lizby PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 9992 |
a34 PicomiteV5.07.00a34.zip HUMID becomes BITBANG HUMID adds BITBANG BITSTREAM as per CMM2 manual BITBANG WS2812 type, pin, number _of_leds, data If number _of_leds is one then the data can be anything that yields a number between 0 and &HFFFFFF. If number _of_leds is > 1 then data should be an integer array Note minor change from CVMM2 syntax to allow a single LED to be used (e.g.Maker board) try BITBANG WS2812 B,34,1,rgb(red) on the maker board Have you tied touch_cs pin high? If using the ILI9488 you must leave the MISO pin disconnected as there is a H/W fault on this controller and the MISO pin doesn't tri-state Edited 2021-06-23 00:54 by matherp |
||||
Mixtel90![]() Guru ![]() Joined: 05/10/2019 Location: United KingdomPosts: 7458 |
Docs update: PicoMite docs a34.zip I'll probably have a go with a display later. Busy making (well, attempting to make) some PCBs. Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
lizby Guru ![]() Joined: 17/05/2016 Location: United StatesPosts: 3298 |
Just tried that with a34. No difference. What is the characteristic of this fault? It appears to me to work with circles.bas in the same way that the ILI9341 does--over 5,000 iterations--with MISO connected. PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 9992 |
Connecting MISO will kill SDcard and touch |
||||
lizby Guru ![]() Joined: 17/05/2016 Location: United StatesPosts: 3298 |
Connecting MISO will kill SDcard and touch With MISO not connected, "files" works with both ILI9341 and ILI9488, and both LCDs work also. Thanks. PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
lizby Guru ![]() Joined: 17/05/2016 Location: United StatesPosts: 3298 |
> run [768] Blit read #11,130,130,190,48 Error : 11 is invalid (valid is 1 to 10) > Can you increase the number of sprites (BLIT read buffers)? This program I'm trying to run has 12, and another one I'd like to run used numbers up to 28 with some gaps depending on which processor was running it (actual sizes of areas are smallish, but I'll see whether there's enough memory). PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 9992 |
I can but the only display that will support this is the ILI9341 and it must have MISO connected to work. The ILI9341 with MISO should not upset the SDcard or at least it doesn't for me |
||||
lizby Guru ![]() Joined: 17/05/2016 Location: United StatesPosts: 3298 |
I can but the only display that will support this is the ILI9341 and it must have MISO connected to work. The ILI9341 with MISO should not upset the SDcard or at least it doesn't for me The ILI9341 with MISO did upset the SDcard for me. I'll try putting in a jumper, but maybe catch-22 for me. Another BLIT related issue: For li%=1 To 10: On error skip: Blit CLOSE li%: Next li% Error : Unknown command but no error with this: for i=1 to 10: on error skip: blit close i: next i That's a shame. PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 9992 |
It really shouldn't unless there is a fault on your ILI9341. It is only the ILI9488 which has the silicon problem BLIT and transparent text can only work if the firmware can read the video memory on the graphics controller. The ILI9481 Raspberry pi modules are wired in a way that makes this impossible. The ILI9488 works but kills everything else on the SPI bus as it doesn't release MISO when CS is not asserted - that leaves the ILI9341. I may look at the parallel displays like the SSD1963 in the future but they use a minimum of 14 pins to control them Edited 2021-06-23 04:43 by matherp |
||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4240 |
This is probably a noob question, but here goes ... All the pictures of the Pico pinout seem to show: GP10 - SPI1SCK GP11 - SPI1TX GP12 - SPI1RX GP13 - SPI1CSn GP14 - SPI1SCk GP15 - SPI1Tx The Maker Pi Pico SD card appears to be connected: CLK - GP10 MOSI - GP11 MISO - GP12 CS - GP15 Shouldn't CS be connected to GP13, or one of the other SPI1CSn lines ? Best wishes, Tom MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4240 |
Also how does: OPTION SYSTEM SPI CLKpin, MOSIpin, MISOpin Interact with: SETPIN pin, SPI{0|1}{SCK|TR|RX} I'm trying to work out how to drive an M7219 matrix which I was previously doing on a CMM1 and the change in syntax and interaction (or not) with the SD card is leaving me unsure of where to start. Best wishes, Tom MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 9992 |
OPTION SYSTEM SPI CLKpin, MOSIpin, MISOpin Interact with: SETPIN pin, SPI{0|1}{SCK|TR|RX} Try it and see ![]() Option system will lock one of the SPI channels so for other use you have to use the other or bitbang the pins - more than adequate for a M7219 We don't use the H/W CS pins. In all versions of MMbasic CS is driven by firmware. Many devices won't accept the H/W approach (e.g.SDcards) |
||||
![]() ![]() ![]() ![]() |
![]() |