![]() |
Forum Index : Microcontroller and PC projects : PicoMite: What I'm I not seeing... :)
Author | Message | ||||
FeK9 Newbie ![]() Joined: 04/12/2021 Location: South AfricaPosts: 16 |
Have tinkered with Micropython and Arduino (MBED) on the Pi Pico. A few days ago I discovered PicoMite and MMBasic, I spent substantial hours on a Commodore 64 in the early 80's as a young adult and thought I'll give it a try... :) I have few different versions of the RP2040, but the board I'm using at the mo is the one from Cytron called 'Maker Pi Pico'... From the PicoMite manual I got the SDCard working with the examples, and the blinky Led example. But the Play Tone example on pg 29 appears not to work. I did switch to the MicroPython Demo by Cytron to be sure GP18 and GP19 where correct pins. Also checked it's schematic. http://github.com/CytronTechnologies/MAKER-PI-PICO/blob/main/Out-of-the-box%20Demo%20Code/MicroPython/main.py I've tried both stable and Beta versions of the firmware... > list Play TONE 500, 500 Pause 2000 Play TONE 300, 300 Pause 5000 > print MM.DEVICE$ PicoMite > PRINT MM.VER 5.070108 > print MM.INFO$(SDCARD) Ready > > OPTION LIST OPTION SDCARD GP15 OPTION SYSTEM SPI GP10,GP11,GP12 OPTION Audio GP18,GP19, on PWM channel 1 > What I'm I not seeing... :) |
||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4311 |
Hi @FeK9 welcome onboard, I have the same board, and I've tested and it doesn't work for me either. I know that the firmware developer @matherp also has this board, but I think he is "on the road" at the moment. I suspect with a little patience either he or one of the other gurus will come back with an explanation for us. Best wishes, Tom Edited 2021-12-05 00:09 by thwill MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10310 |
Just tested on b6 and it work perfectly. Remember it is very high impedance so you need an amplifier - won't drive headphones Also make sure the little switch points to the speaker with a cross (towards the audio jack). This disconnects the buzzer from GP18. On my board the buzzer is unusable and crashes the Pico - something wrong with the Maker Pi Pico circuit |
||||
FeK9 Newbie ![]() Joined: 04/12/2021 Location: South AfricaPosts: 16 |
Thx for reply This is curious issue ![]() The audio circuit works with Cytron's MicroPython Demo. Scratch on these forums for b6 firmware you mentioned, found a b6 date July this year. Loaded that but result is the same, no tone. Had a close look pdf schematic of the 'Maker Pi Pico', seems to be a similar audio circuit that is shown PicoMite manual. I'm also wondering if our board version differ, mine is 1.2, it's next to the SDCard... With my tests I've all ways used a powered external speakers, also my buzzer that is attached GP18 is fine and given no problems... For interest sake I nuke the Options List, then tried the pwm code shown below and got a 'Middle C' tone. Tomorrow at the office I'll try a bare bone Pi Pico to see.... > PRINT MM.VER 5.070108 > setpin 25,pwm1b > pwm 1,261.625,,50 |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10310 |
Just tested again with b9 just posted and of course it works for me. I assume PWM works on both GP18 and GP19? What chip version are you using? Mine are all RP2-B1 Hate this sort of issue ![]() |
||||
FeK9 Newbie ![]() Joined: 04/12/2021 Location: South AfricaPosts: 16 |
Put bi nocks on and a bright light, I see it's marked RP2-B1... I only tried pin 25 (GP19) with PMW... |
||||
FeK9 Newbie ![]() Joined: 04/12/2021 Location: South AfricaPosts: 16 |
Success ![]() I applied your suggestion of "Play volume 100,100" and it worked... The pdf doc example on pg29 might need to be amended... Thx > option list OPTION SDCARD GP15 OPTION SYSTEM SPI GP10,GP11,GP12 OPTION Audio GP18,GP19, on PWM channel 1 > list Play volume 100,100 Play TONE 500, 500 Pause 2000 Play TONE 300, 300 Pause 5000 > run > PRINT MM.VER 5.070109 > |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10310 |
Should default to 100,100 on reset - the parameters are set to 100 in the variable initialisation - bizarre Edited 2021-12-06 02:10 by matherp |
||||
FeK9 Newbie ![]() Joined: 04/12/2021 Location: South AfricaPosts: 16 |
I've discovered what the issue is, no need for "Play volume 100,100". Unlike when you add the two options to make the SDCard work and reboots it self, adding the option "OPTION AUDIO GP18, GP19" does not cause a reboot. A Pi Pico reset fix's the issue, I guess the options list needs to be reread again. Thx's again... :) |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |