The Aliens Legacy
http://forum.alienslegacy.com/

Updated wii nunchuck controls with raspberry pi
http://forum.alienslegacy.com/viewtopic.php?f=3&t=18662
Page 1 of 1

Author:  knoxvilles_joker [ Sun Mar 01, 2020 11:28 am ]
Post subject:  Updated wii nunchuck controls with raspberry pi

At this point I am starting a new thread to document a major code revision and update to my predator cannon.

The Arduino update suffers from substantial delays as it only has 16mhz and is getting phased out with circuit python used on the m0 and m4 based chipsets. Minimum delay I could achieve with what I was doing was about 5 seconds from initial input.

The raspberry Pi zero w offers a Cortex ARM 1GHZ CPU, 3.5mm audio via hdmi, 40 pin GPIO, wireless, Bluetooth and runs on 5VDC. There are a few write ups on using the wii remote and a few on using the wii nunchuck.
https://lifehacker.com/the-raspberry-pi ... 1792789503

The capabilities allow me to do the same things in less than half the footprint. Plus I should be able to consolidate the fx sound board capabilities onto the pi itself.

The servo bonnet uses the pca9685 chip and the i2c bus.
https://learn.adafruit.com/adafruit-16- ... on-library

The pimoroni onoff shim will allow for clean shut down and startup of the raspberry pi, essential for minimizing sdcard corruption possibilities. It is a self contained single line installer and has built-in debounce capabilities to prevent accidental power cycling.
https://shop.pimoroni.com/products/onoff-shim

So far this python code base seems to be the most well suited to my needs:
https://github.com/OLIMEX/raspberrypi

This will have to be done in steps and will not be a fast process.

Reference sites consulted thus far:
https://learn.adafruit.com/adafruit-16- ... on-library
https://learn.adafruit.com/circuitpytho ... spberry-pi
https://linuxize.com/post/how-to-instal ... -debian-9/
https://www.raspberrypi.org/magpi-issues/MagPi67.pdf
https://computers.tutsplus.com/tutorial ... -cms-20984
https://raw.githubusercontent.com/Boeee ... unchuck.py
http://www.brianhensley.net/2013/03/ras ... ase-1.html
http://www.airspayce.com/mikem/bcm2835/
https://www.thingiverse.com/thing:3597240
https://pimylifeup.com/raspberry-pi-wii ... ntrollers/
http://whatacowpi.blogspot.com/2012/07/ ... ry-pi.html
https://github.com/OLIMEX/raspberrypi

Author:  knoxvilles_joker [ Sun Mar 01, 2020 10:34 pm ]
Post subject:  Re: Updated wii nunchuck controls with raspberry pi

I have to redo some solder points so that I can make the onoff shim behave properly and then it is off to get the servo shield piece working.

Author:  knoxvilles_joker [ Sat Mar 07, 2020 12:22 am ]
Post subject:  Re: Updated wii nunchuck controls with raspberry pi

Backpack is getting a complete revamp too

Attachments:
D75173AF-763C-4869-A0A2-A5D762CE68DA.jpeg
D75173AF-763C-4869-A0A2-A5D762CE68DA.jpeg [ 1.34 MiB | Viewed 3091 times ]
FD950D2F-D53B-4AD4-A0B8-E511DE6A5FF3.jpeg
FD950D2F-D53B-4AD4-A0B8-E511DE6A5FF3.jpeg [ 1.18 MiB | Viewed 3091 times ]

Author:  knoxvilles_joker [ Sat Mar 07, 2020 12:26 am ]
Post subject:  Re: Updated wii nunchuck controls with raspberry pi

The sound system part will have a pair of Memphis 2.5 inch speakers and I will change to a similar board that has audio in and Bluetooth functionality. I wanted a cleaner case and have clean sounding Memphis speakers to boot.

Author:  knoxvilles_joker [ Sun Mar 29, 2020 12:24 am ]
Post subject:  Re: Updated wii nunchuck controls with raspberry pi

OK, got the power issue sorted. had to turn off the 1-wire interface and then everything was happy.

The documentation on the shim did not say explicitly that that had to be turned off for things to work properly...

Author:  knoxvilles_joker [ Sun Mar 29, 2020 5:45 am ]
Post subject:  Re: Updated wii nunchuck controls with raspberry pi

ok the i2c address on the servo board is 40 and 70. The nunchuk also uses address 40 on one of the comms along with 50 and 52. and I think my controller may have bit the bucket.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/