The discussion of the Alien series of films and the props used in them is the aim, but if it's got Big Bugs and Big Guns, then they are welcome too!





Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Updated wii nunchuck controls with raspberry pi
PostPosted: Sun Mar 01, 2020 11:28 am 

Service Number: A05/TQ2.0.32141E1
Country: United States
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

_________________
The impossible takes a while longer and goes over budget too...


Top
 Profile  
Reply with quote  
 Post subject: Re: Updated wii nunchuck controls with raspberry pi
PostPosted: Sun Mar 01, 2020 10:34 pm 

Service Number: A05/TQ2.0.32141E1
Country: United States
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.

_________________
The impossible takes a while longer and goes over budget too...


Top
 Profile  
Reply with quote  
 Post subject: Re: Updated wii nunchuck controls with raspberry pi
PostPosted: Sat Mar 07, 2020 12:22 am 

Service Number: A05/TQ2.0.32141E1
Country: United States
Backpack is getting a complete revamp too

D75173AF-763C-4869-A0A2-A5D762CE68DA.jpeg
D75173AF-763C-4869-A0A2-A5D762CE68DA.jpeg [ 1.34 MiB | Viewed 2916 times ]

FD950D2F-D53B-4AD4-A0B8-E511DE6A5FF3.jpeg
FD950D2F-D53B-4AD4-A0B8-E511DE6A5FF3.jpeg [ 1.18 MiB | Viewed 2916 times ]


_________________
The impossible takes a while longer and goes over budget too...
Top
 Profile  
Reply with quote  
 Post subject: Re: Updated wii nunchuck controls with raspberry pi
PostPosted: Sat Mar 07, 2020 12:26 am 

Service Number: A05/TQ2.0.32141E1
Country: United States
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.

_________________
The impossible takes a while longer and goes over budget too...


Top
 Profile  
Reply with quote  
 Post subject: Re: Updated wii nunchuck controls with raspberry pi
PostPosted: Sun Mar 29, 2020 12:24 am 

Service Number: A05/TQ2.0.32141E1
Country: United States
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...

_________________
The impossible takes a while longer and goes over budget too...


Top
 Profile  
Reply with quote  
 Post subject: Re: Updated wii nunchuck controls with raspberry pi
PostPosted: Sun Mar 29, 2020 5:45 am 

Service Number: A05/TQ2.0.32141E1
Country: United States
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.

_________________
The impossible takes a while longer and goes over budget too...


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: