![]() |
Forum Index : Microcontroller and PC projects : PicoMite Alpha Firmware - a27 onwards - starting on displays
![]() ![]() ![]() ![]() |
|||||
Author | Message | ||||
lizby Guru ![]() Joined: 17/05/2016 Location: United StatesPosts: 3298 |
Miracles brought to you compliments of MMBasic ![]() PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
lizby Guru ![]() Joined: 17/05/2016 Location: United StatesPosts: 3298 |
Excellent, but PicoMite MMBasic Version 5.07.00a35 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,GP20,GP19,GP18 OPTION TOUCH GP22,GP21 > load "ccpico.bas" > RUN [808] GUI interrupt touchInt Error : Unknown command > PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
Mixtel90![]() Guru ![]() Joined: 05/10/2019 Location: United KingdomPosts: 7458 |
I'm starting to feel the urge to design a replacement MicroMite backpack pcb to take the PicoMite instead of the MX170. :) Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 9992 |
Was it in my list of what was implemented? |
||||
Mixtel90![]() Guru ![]() Joined: 05/10/2019 Location: United KingdomPosts: 7458 |
@matherp "NB: the buzzer on my Maker card completely kills the processor if I try and use it - another power issue?" Interesting... I wonder if they used a magnetic "buzzer" i.e. speaker rather than a piezo buzzer? Just switching a speaker across 3.3 might bee a fair load. Their circuit diagram isn't helpful, other than showing that it's driven by a mosfet.. Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 9992 |
You can drive a 8x8 array of RGB WS2812 LEDs with one pin |
||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4238 |
Nice, but they aren't cheap are they ? May as well use an LCD panel at that price. At the moment I think I get more joy out of driving an LED matrix from 16 pins and a bunch of discrete transistors ... baby steps. Best wishes, Tom MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
lizby Guru ![]() Joined: 17/05/2016 Location: United StatesPosts: 3298 |
Probably premature, and not exactly MM2 backpack style, but I think all the parts are now in place (PCBs untested). PicoMite hat with SPI LCD (ILI9341 or ILI9488), SD module, ESP-01 module, RTC module and 20x2 expansion port allowing 2 Com, 2 I2C, 2 SPI ports, 3 ADCs, PWM and a few free pins: ![]() Gerbers (for sending to, for example, JLCPCB.com): picomite_mcp1.2_2021-06-23.zip Eaglecad sch & pcb files: picomite_1.2.zip And the same with a socket for an MCP23017 module to add 16 more (simple) I/Os: ![]() Gerbers: picomite_mcp2.2_2021-06-23.zip And Eaglecad files:picomite_mcp2.2.zip JLCPCB cost for 5 of the first and 10 of the second with slow boat shipping to Canada, $21.39US. ~ Edited 2021-06-24 05:56 by lizby PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
Mixtel90![]() Guru ![]() Joined: 05/10/2019 Location: United KingdomPosts: 7458 |
For a small quantity (strips of 8 for 1UKP): https://www.bitsbox.co.uk/index.php?main_page=product_info&cPath=252&products_id=3532 Edited 2021-06-24 05:59 by Mixtel90 Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
lizby Guru ![]() Joined: 17/05/2016 Location: United StatesPosts: 3298 |
Could the BLIT buffers be cleared at the start of a program so this 4-line program could be run twice without having to power cycle in between (F4 is the same)? > list CLS RGB(red) Blit read #1,0,0,39,39 CLS RGB(green) Blit write #1,MM.HRes/2-20,MM.VRes/2-20,40,40 > run > run [2] Blit read #1,0,0,39,39 Error : Buffer in use > PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
goc30![]() Guru ![]() Joined: 12/04/2017 Location: FrancePosts: 435 |
goc30 - is your 32GB card formatted FAT32? NB exFAT is not supported yes I have formatted it before tests Have you followed the guidelines I posted earlier re power etc.? yes Please try putting a 2R2 or even 10 ohm resistor in the power line to the SDcard with both a 10uF and 0.1uF capacitor across the rails directly at the SDcard if it is an hardware problem, why it work correctly with version a25?? NB the code is now a direct lift from the CMM2 I can read my 32go sdcard on CMM2, without problems |
||||
lizby Guru ![]() Joined: 17/05/2016 Location: United StatesPosts: 3298 |
VegiPete's CrateAway on the Picomite ![]() Zip file with capico.bas and .bmp files for sprites: capico.zip Program also runs on F4 with SPI ILI9341 and on the CMM2 in the CrateAway15 folder along with CrateAwaySprites.png and GetFileDialog.inc. PicoMite on FruitoftheShed ~ Edited 2021-06-24 12:00 by lizby PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
phil99![]() Guru ![]() Joined: 11/02/2018 Location: AustraliaPosts: 2405 |
@Lizby " so apparently there are some ILI9341s which will kill access to the SD card" Had similar issue on MX170. Either SD or ILI9341 fine on their own no SD if together. eventually tried another ILI9341 and all ok. They were from the same manufacturer so I guess there may be component tolerance issues with things aimed at the hobby market. |
||||
disco4now![]() Guru ![]() Joined: 18/12/2014 Location: AustraliaPosts: 961 |
Remove and reinsert the SDCARD Power restart. Works for me in all the above with all my cards including two versions of 32GB card ones at both 125000KHz and 250000KHz. I am certain there is no firmware issue but there is clearly an electrical one as evidenced by what disco4now reports. The SDcard is only initialised when it is first accessed so it can't know whether power has just been applied or a restart has happened SDCARD now OK. Hardware Issue Found - Operator Error I had what I thought was a 4.7K pullup on T-CS to prevent errors with Touch affecting the SPI bus. Tried all the power things to no avail. Enabled Touch now it available and SDCARD was OK. Checked the pullup and is was 1Meg and did not pull the pin up. Replaced with 4.7K and disabled touch and SDCARD still good. Latest F4 Latest H7 FotS |
||||
Volhout Guru ![]() Joined: 05/03/2018 Location: NetherlandsPosts: 4811 |
For those in Europe: be aware that of juli-1 incoming foreign shipments the tax rules are changed. There was a free allowance of 22 euro (the cheap Chinese packets). The free allowance is ending. And tax is not killing, but the handling fee is. On a $4 arduino you pay 0.80 euro tax, no income duties (only over 150 euro, that remains the same), and around 9 euro handling fee (10x the tax value, 2x the product value).. I am not complaining, the system was ridiculous as it was. I once ordered a single Barby doll dress from China for my granddaughter, costing 0.37 euro. Including shipping.. And it arrived within 4 weeks. Ridiculous.... PicomiteVGA PETSCII ROBOTS |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 9992 |
a26 PicomiteV5.07.00a36.zip Preparation for GUI implementation and memory flexibility - please test Couple of new commands OPTION RTC AUTO ENABLE/DISABLE With this option enabled the system will load the time from the RTC on boot up and every hour thereafter. If the option is enabled and the RTC is not connected then a warning message will print each time it attempts to update the time unless a program is running in which case a hard error is generated OPTION MEMORY No_of_GUI_controls, program_memory_size The PicoMite memory is now treated as a pool of 160Kbytes which can be flexibly allocated by the user. This command is how it is allocated. By default there are 0 GUI controls and 80Kbyte of both program and variable memory Each GUI control will take 52 bytes and the memory required will then be rounded up to a 256 byte boundary The program memory size can then be up to half the remaining memory out of the 160K. It cannot exceed half as the program would then be unable to be edited or loaded ![]() |
||||
Volhout Guru ![]() Joined: 05/03/2018 Location: NetherlandsPosts: 4811 |
@Peter: I understand you want to give people much flexibility in memory assignment, but it may confuse. i.e. the 10 flash slots can contain various programs, should each of these programs control it's own memory map.. guess not... would require a cold/warm boot, so chaining may become impractical. I probably will leave the settings at the defaults always, just to make sure it always works, and for everybody. PicomiteVGA PETSCII ROBOTS |
||||
twofingers Guru ![]() Joined: 02/06/2014 Location: GermanyPosts: 1518 |
On a $4 arduino you pay 0.80 euro tax, no income duties (only over 150 euro, that remains the same), and around 9 euro handling fee (10x the tax value, 2x the product value).. Thanks Volhout! ![]() Thats is an important info, I did not realize that yet. I think for germany tax below under 1.00 EUR is free. I.e. value of goods from 0.01 to 5.23 EUR: VAT is due, but is not charged, as it is less than 1 EUR. Regards Michael causality ≠ correlation ≠ coincidence |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 9992 |
You can only use the defaults if you don't want GUI functions. The GUI memory has to come from somewhere |
||||
Volhout Guru ![]() Joined: 05/03/2018 Location: NetherlandsPosts: 4811 |
![]() Thats is an important info, I did not realize that yet. I think for germany tax below under 1.00 EUR is free. I.e. value of goods from 0.01 to 5.23 EUR: VAT is due, but is not charged, as it is less than 1 EUR. Regards Michael The poison is in the detail: customs see boxes and bags. So if you order from AMAZON 5 items, all 5 could come from different vendors, meaning 5 boxes for customs. And I am not sure (have no experience yet) if tax is below 1 euro, the invoice for the handling cost is send to you or not.... Edited 2021-06-24 20:49 by Volhout PicomiteVGA PETSCII ROBOTS |
||||
![]() ![]() ![]() ![]() |
![]() |