Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 09:03 01 Aug 2025 Privacy Policy
Jump to

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 : CMM2: Ridding the World of Bricks

Author Message
vegipete

Guru

Joined: 29/01/2013
Location: Canada
Posts: 1132
Posted: 05:20am 12 Sep 2020
Copy link to clipboard 
Print this post

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 States
Posts: 490
Posted: 05:58am 12 Sep 2020
Copy link to clipboard 
Print this post

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 States
Posts: 377
Posted: 02:23pm 12 Sep 2020
Copy link to clipboard 
Print this post

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: Canada
Posts: 1132
Posted: 06:06pm 12 Sep 2020
Copy link to clipboard 
Print this post

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: Australia
Posts: 341
Posted: 03:40am 13 Sep 2020
Copy link to clipboard 
Print this post

Nice, I got to try out my potentiometer paddle!
 
vegipete

Guru

Joined: 29/01/2013
Location: Canada
Posts: 1132
Posted: 08:10am 13 Sep 2020
Copy link to clipboard 
Print this post

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.
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025