![]() |
Forum Index : Microcontroller and PC projects : CMM2: Ridding the World of Bricks
Author | Message | ||||
vegipete![]() Guru ![]() Joined: 29/01/2013 Location: CanadaPosts: 1132 |
It looks like it has been some seven and a half years since I released MaxiBrick for the Colour Maximite. Well, here is an update: MaxiBrick 2 for the Colour Maximite 2! ![]() The game program is completely self contained; no support files are required. This is playable with keyboard, Nunchuk and game paddle, although a paddle is the only sensible choice. The game itself can show you the required wiring diagram. Twist your wrist when using a Nunchuk. Have at it and let me know if there are any problems. Visit Vegipete's *Mite Library for cool programs. |
||||
mclout999 Guru ![]() Joined: 05/07/2020 Location: United StatesPosts: 490 |
accounting for shiftlock might be helpfull. Nothing was working untill I noted that my shift lock was set. The directional keys are very odd to me. I see the benefit of 2 speeds but there is NO muscle memory there like there is for ASWD and maybe a speed modifiyer key but we will see. Also The Numbchuck using the acceleration works but on all 4 of my numbchuck it is very jittery and hard to control. Why didn't you use the analoge left to right? I like it a lot but the controls are proving to be an issue for me. |
||||
Sasquatch![]() Guru ![]() Joined: 08/05/2020 Location: United StatesPosts: 377 |
Nice job VegiPete! Well done. You should probably set the graphics mode somewhere near the beginning of the program. I started from mode 9,8 and it was a bit confusing. Even the demo mode is fun to watch and keyboard play is good. Nunchuk play is a bit shaky. I think that most apps that use the Nunchuk accelerometers use some kind of smoothing or filtering. Now I need to wire up a paddle for the full experience! Update: There are lots of articles online about simple Kalman filters for using Nunchuk accelerometers with Arduino etc. Edited 2020-09-13 00:37 by Sasquatch -Carl |
||||
vegipete![]() Guru ![]() Joined: 29/01/2013 Location: CanadaPosts: 1132 |
Is a Kalman filter appropriate here? Such a filter seems to combine two different measurements into a single result. The Nunchuk examples typically are combining the accelerometer data (which suffers from high frequency noise, as shown by the jittery paddle position in MaxiBrick2) with gyroscope data (which drifts slowly with time) to generate a single output such as angle. I'll experiment with averaging a few readings and see if something nice falls out... Visit Vegipete's *Mite Library for cool programs. |
||||
capsikin Guru ![]() Joined: 30/06/2020 Location: AustraliaPosts: 341 |
Nice, I got to try out my potentiometer paddle! |
||||
vegipete![]() Guru ![]() Joined: 29/01/2013 Location: CanadaPosts: 1132 |
Here is MaxiBrick2 version .83. Changes include simple Paddle and Nunchuk filtering, proper mode setup at start, better upper/lower case handling, some slight changes to ball physics and some minor math bug fixes. Also, in the ReadChuk function starting at line 400, there is a commented line for those who might want to try using the Nunchuk joystick instead of the accelerometer. Change the line commenting to select which input is used. This is untested and assumes full 0-255 travel of the joystick x-axis. But I still recommend using a paddle, as Wozniak intended... ;-) For comedy value, watch demo mode above level 2 or 3 hundred. (Set on line 90, won't affect level when you actually start a game.) Visit Vegipete's *Mite Library for cool programs. |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |