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 : PicoGAME LCD: Handheld videogame
Page 3 of 4 | |||||
Author | Message | ||||
thwill Guru Joined: 16/09/2019 Location: United KingdomPosts: 4043 |
Thanks. I hadn't noticed but then again with the exception of my Text Adventures I don't use PRINT when I'm writing games. Best wishes, Tom Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
stanleyella Guru Joined: 25/06/2022 Location: United KingdomPosts: 2129 |
The 5 button pad with 1 analogue out works well. 5 buttons/1 pin. A switch joystick with resistors would be similar. |
||||
Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 6798 |
My idea, as I've said elsewhere, is to make I2C controllers. Two pins would give me several controllers (up to seven if the I2C connection isn't loaded down by too much cable capacitance. More likely to only be two), each with a programmable analogue/digital joystick and two or three buttons. This is still early days yet, but I've got the joystick working acceptably well in both digital and analogue modes. I need to sort out the I2C now. Somehow. Sometimes you could really do with two monitors and twice as much bench space. :( My VGA-RJ45 adapters have turned up too. More to play with. :) Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
ice2642 Regular Member Joined: 27/05/2023 Location: BrazilPosts: 82 |
Sorry to join the conversation, It's an interesting observation for me. I'm doing some tests with tone and the sound is coming out bad, although I connected an amplifier directly to the GP0 and GP1 outputs, without the low filter. The print in program, it just tells you which keys to press to make a certain sound. Thanks Edited 2023-06-09 02:43 by ice2642 MMBasic 5.0707 on PicoMite VGA |
||||
stanleyella Guru Joined: 25/06/2022 Location: United KingdomPosts: 2129 |
I got some i2c 16 port expander chips which work with mmbasic (with help from the forum, thank you). Could also be another option for a control panel. |
||||
Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 6798 |
In MMBasic the PLAY sounds are generated by PWM. You *need* a filter or all you get is a modulated 44kHz square wave. You are lucky to be hearing anything at all. :) A simple RC filter will get the audio out of the carrier, but it won't get rid of the 44kHz carrier. That's not good for amplifiers and speakers. This is why Volhout has produced some more complex filters. IIRC Tom's case is a bit special. The tiny speaker acts as a mechanical filter to reduce the 44kH. It can't simply be substituted by an amplifier input. You get better quality with less filtering by using a DAC. Edited 2023-06-09 02:59 by Mixtel90 Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
Volhout Guru Joined: 05/03/2018 Location: NetherlandsPosts: 4247 |
You are new to the forum, and there have been megabytes of discussions on audio the last year. To summarize: pwm audio needs a filter, and the picomite powersupply causes noise. Simplest is to use a linear regulator for 3.3V. Volhout PicomiteVGA PETSCII ROBOTS |
||||
Sasquatch Guru Joined: 08/05/2020 Location: United StatesPosts: 362 |
Hi Tom, The PicoGAME PCB looks great! It looks like the schematic and KiCad files on the Github repository are outdated. Can we expect Gerber files for the new PCB soon? If you do another revision of the PCB you might think about adding mounting holes for the LCD module on standoffs. I can see that the LCD is supported by pin headers on both ends, but a more solid mount might be nice. -Carl |
||||
ice2642 Regular Member Joined: 27/05/2023 Location: BrazilPosts: 82 |
IIRC Tom's case is a bit special. The tiny speaker acts as a mechanical filter to reduce the 44kH. It can't simply be substituted by an amplifier input. You get better quality with less filtering by using a DAC. Can you sugest a good DAC for use with PicoMite in Aliexpress? I am looking this models in the attached image. PCM5102 the first 2 and UDA1334a I have been playing with sound on the VGA picomite, and have oe observation I would like ot share. The sound suffers from PRINT statements. Te print statements go to the USB interface (console), and I think that USB stack has impact on audio. Only after I removed the last PRINT statement (change to a TEXT statement) the audio was flawless on 126MHz CPU. Volhout Sorry to join the conversation, It's an interesting observation for me. I'm doing some tests with tone and the sound is coming out bad, although I connected an amplifier directly to the GP0 and GP1 outputs, without the low filter. The print in program, it just tells you which keys to press to make a certain sound. Thanks You are new to the forum, and there have been megabytes of discussions on audio the last year. To summarize: pwm audio needs a filter, and the picomite powersupply causes noise. Simplest is to use a linear regulator for 3.3V. Volhout Good tip, I'll give a search in the old threads on the subject. Best Regards, MMBasic 5.0707 on PicoMite VGA |
||||
thwill Guru Joined: 16/09/2019 Location: United KingdomPosts: 4043 |
Thanks Carl. Yes, everything on GitHub is out of date. Updated schematic and Gerber (courtesy of @bigmik) will be posted once we've ironed out some cosmetic issues and done another round with the audio - it looks like the previous prototype which I based the final decisions around may have had a faulty PAM8302 module on it . Regarding mounting points for the LCD that may prove a little tricky* and I'm not convinced it is necessary, uncased this is never going to be a particularly robust device. I'll see what @bigmik thinks. * At least one of them would conflict with the mounting points between the PCB and its baseplate (another unpopulated copy of the same PCB to which the battery and speaker are stuck). Best wishes, Tom Edited 2023-06-09 04:18 by thwill Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
thwill Guru Joined: 16/09/2019 Location: United KingdomPosts: 4043 |
Hey guys, I'm usually pretty "live and let live" about thread hijacking, but it's getting a bit much. Could I point you at: PicoMite: Controllers ... again ;-) and PicoMite: driving a small speaker Best wishes, Tom Edited 2023-06-09 03:49 by thwill Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 6798 |
Ice: The PicoMite supports the MCP4822 DAC chip (and other members of that family). I got some through-hole ones from AliExpress. Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
Sasquatch Guru Joined: 08/05/2020 Location: United StatesPosts: 362 |
Thwill said: I have started 3D printing "Trays" for my "Uncased" PCB's The "trays" cover the back of the PCB and prevent shorting out the solder joints. The "trays" also give some stability when sitting on the bench or table. Here are some photos of a tray I printed for a similar project. The project is an Apple//e emulator using a Teensy 4.1 (on GitHub as Aiie by JorjBauer.) The main PCB is screwed firmly to the tray and the tray encloses the LiPo battery and charging/boost module. You can also see the custom printed standoffs supporting the LCD module (in this case the LCD is only supported by pin-headers on one side.) I used lower profile machine pin headers for the Teensy module and raised the LCD headers slightly to allow clearance under the LCD module. You can see the micro USB charge port on the top edge of the tray. This tray has rounded edges and fits nicely in the hand. I considered adding a top to the tray kind of clam-shell style but I think leaving it open gives the project a nice retro look. -Carl |
||||
stanleyella Guru Joined: 25/06/2022 Location: United KingdomPosts: 2129 |
Wow! I like the mini key board! You guys |
||||
vegipete Guru Joined: 29/01/2013 Location: CanadaPosts: 1109 |
I've ported it to the CMM2, steerable shells and all. Works very well - with a potentiometer providing an analog input. I re-wired a standard Apple paddle with a 4 conductor cable. Retro... Visit Vegipete's *Mite Library for cool programs. |
||||
Turbo46 Guru Joined: 24/12/2017 Location: AustraliaPosts: 1611 |
Sorry Tom but I would like to point out for the purists that the PAM8302A is a DIGITAL AMPLIFIER. There is no filter between the amplifier's digital output and the speaker. Bill Keep safe. Live long and prosper. |
||||
Sasquatch Guru Joined: 08/05/2020 Location: United StatesPosts: 362 |
The large knob is actually an analog joystick so it works quite well for left/right control. As you may be aware the joystick for apple][ was actually wired the same as two paddles for X and Y. Sabotage is playable on apple][ keyboard (using "D" and "F" for left/right) although not nearly as nice as a paddle or joystick! Sabotage might be a good candidate for the PicoGAME LCD using the gamepad controls or a potentiometer as a paddle. Sabotage was one of the iconic games I remember from the '80s I was wondering who would recognize it. I'd love to play Sabotage on my CMM2, did you ever upload it to the forum? Let's start a new thread for Sabotage if you want to discuss further! Edited 2023-06-09 07:58 by Sasquatch -Carl |
||||
Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 6798 |
That's the same sort of joystick I've been playing with. :) Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
Turbo46 Guru Joined: 24/12/2017 Location: AustraliaPosts: 1611 |
Please do. Maybe suitable for a Nunchuk? Bill Keep safe. Live long and prosper. |
||||
thwill Guru Joined: 16/09/2019 Location: United KingdomPosts: 4043 |
Hi Carl, Very, very nice. Whilst not as pretty I've found the Bintendo's two PCB sandwich provides similar stability and a level of protection against shorting. The Bintendo suprisingly has reasonable weight and ergonomics, especially for the minimal effort it requires (I've made a deliberate decision to have nothing to do with 3D printing or CNC at least until I retire; there aren't enough hours in the day as it is.) The final hardware will be licensed under CC BY 4.0 so perhaps someone else might choose to take it further, I know @bigmik has some ideas about squeezing this all into the existing enclosure from one of those cheap Chinese "NES on a chip" handhelds. Thanks for your interest, Tom Edited 2023-06-09 20:46 by thwill Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
Page 3 of 4 |
Print this page |