Wii Nunchuk - Fading the LEDs

Supplies-
  • Wiimote (to test nunchuk)
  • nunchuk (with LED(s) installed)
  • 30awg wire
  • Soldering Iron (I use a Weller 25w)
  • Solder (Rosin Core/.022 dia)
  • Soldering Sponge
  • 12F629 PIC*
  • Programmer (I used a standard JDM Programmer)
  • Tri-wing screwdriver
* For this mod I used a 12F629-I/SN PIC. This model is smaller than the typical 12F629-I/P model. I'm sure the I/P model will work just fine, but the I/SN model is more convenient for this mod. And don't worry if your programmer doesn't support the I/SN model, I'm going to walk you through how to make it work in your [standard 12F629-I/P] programmer. Here is a picture for reference-


Where to get PICs-
You can get free samples from-
http://sample.microchip.com

Where to get a Tri-wing Screwdriver-
www.sickmods.net
www.ebay.com

My tri-wing screwdriver looks like this-


How To Fade Your nunchuk LED(s)

Step 1-
Making sure your nunchuk is ready:
Be sure you did one these mods-
How To Light Up The nunchuk's Analog Stick
How To Light Up The nunchuk's C And Z Buttons

Step 2-
Disassembling your nunchuk:
Use this tutorial- Link

Step 3-
Prepping your wires:
This is where this tutorial gets complicating. You're gonna need to cut and strip 5 wires (30awg) about an inch long.


Step 4-
Soldering your wires:
Now I want you to take those wires and solder them to 5 legs on the PIC. These are the legs I want you to solder the wires to- 1, 4, 6, 7, 8.
In the following picture, you'll see the legs numbered and you'll also see a blue arrow. The blue arrow is pointing at a little dimple. This is to help you clarify the appropriate direction of the PIC.


Step 5-
Checking your wiring:
You should get something like this-




Step 6-
Putting your PIC in the programmer:
Now it's time to get to programming. But first you must put your PIC in your programmer! This is what I did. I stuck the newly soldered wires into their appropriate "holes". The orientation of the socket will most likely vary from programmer to programmer.. But just make sure you're placing it in correctly. Here are some pictures that may help-




Step 7-
Programming:
This "Step" will be broken down into multiple steps.
Step A:
Plugging your programmer into your computer-
I'm not sure about your programmer, but mine uses a serial interface. Luckily, I can stick mine right into the back of my computer.. but you may have to use a serial cable.
Step B:
Downloading IC-Prog 1.05E-
You can get it at this link- Link
Step C:
Opening up IC-Prog 1.05E-
Go ahead and start IC-Prog 1.05E. You'll get a screen like this-

Step D:
Setting the correct settings-
Go to "Settings" > "Hardware" and make sure your settings are like this-

Step E:
Setting more correct settings-
Go to "Settings" > "Options" > "Programming".
Select "Verify after programming" and deselect "Verify during programming"

Note- When I did this.. I ended up deselecting both options. Once it was done programming, I then verified it. You may have to do this if you get an error
Step F:
Setting even more correct settings-
While in the same "Options" menu, go to the "Misc" tab.
Select "Enable NT/2000/XP Driver" and select "Enable Vcc control for JDM"
Then click "OK", then exit and restart the program.

Step G:
Selecting the correct PIC-
Go to the drop-down box and select "PIC 12F629"

Step H:
Reading your PIC-
Click "Read All"-




Step I:
Finding your PIC's oscillator calculation value-
Now you have to scroll down in the "Address - Program Code" box to the last line. What you're looking for is your PIC's oscillator calculation value. Find this number and write it down. You'll need it later-

Step J:
Downloading the HEX (code)-
You can get it at this link- Link
Step K:
Opening the HEX-
Go to "File" > "Open File" and select the hex file you just downloaded.
Step L:
Changing the oscillator calculation value-
Now that you've opened up the hex file, you're going to need to scroll down the last line and change the "3FFF" (the last 3FFF in the line) to your PIC's oscillator calculation value. Just double click on the "3FFF" and you'll get a screen like this-

Step M:
Programming-
Go ahead and click "Program All"-

Click "Yes"-

Then let it do its thing-








Step 8-
Prepping the PIC for install:
Now that it's all programmed (..that was fun, wasn't it?), it's time to prep it for install. You can desolder the wires on legs 4, 6 and 7. Then you need to solder a wire onto leg 5.

Note- For my install.. I desoldered all wires and used what was already in the nunchuk. Upcoming pictures will explain

Step 9-
Installing the PIC:
So you should have a PIC with 3 wires (on legs 1, 5 and 8 ). Or if you opted to do what I did (remove all wires).. then you should have no wires. lol.
But this is how the install is going to go-

The "5" is pointing to the positive "leg" (a wire on my LED). What you're gonna need to do is either desolder the wire from the power source point (which is what I did) or snip the leg/wire.
The "1" is pointing the point where the LED gets power.
The "8" is pointing to the point where the LED gets grounded.

This is how I installed mine-

Notice how the "leg" of the LED (the purple wire) is soldered directly to the PIC (leg "5").
Notice how leg "1" (on the PIC) is soldered directly to the power source point.
Notice how leg "8" (on the PIC) is directly soldered to the grounding point.

Step 10-
Testing:
Now that your PIC is all installed.. it's time to test. Plug your nunchuk into your wiimote. I'd suggest turning your Wii on and syncing your wiimote. If done correctly, your LED(s) should now fade!

Here's a video of what my nunchuk looked like as I tested it- Link

Step 11-
Reassembling:
Now that you know it works, it's time to reassemble. Please refer to my disassembly tutorial if needed.

Step 12-
Final testing:
Plug your nunchuk into your wiimote and sync your wiimote up with your Wii and watch it go!

Here's a video of mine! Link