nuxx.net
Making, baking, and (un-)breaking things in Southeast Michigan.

Category making things

It works.

When this…

sendCommand(mode2, 0)
sendCommand(playButton, 0)
sendCommand(relButton, 0)

Which supposedly sends these commands…

const mode2 as byte[5] = (0x03,0x00,0x01,0x02,0xFA) 'Simple iPod Remote
const playButton as byte[5] = (0x03,0x02,0x00,0x01,0xFA) 'Play Button
const relButton as byte[5] = (0x03,0x02,0x00,0x00,0xFB) 'Release Button

Gives me this in the serial console…

Received: 0xFF 0x55 0x03 0x00 0x01 0x02 0xFA 0xFF 0x55 0x03 0x02 0x00 0x01 0xFA
Received: 0xFF 0x55 0x03 0x02 0x00 0x00 0xFB

…I know it’s time to go home.

And yes, as suggested earlier I just went ahead pre-calculated the checksums. I also just bundled the packet lengths in there too, and I read that first bit to determine how many bits have to be sent so that packets of arbitrary length may be sent simply by defining them as a constant.

It’s sending back to the PC properly, but not to the iPod. I think that’s because of some weirdness with the pins I chose to use. It worked fine on the PIC16F88, but for some reason that thing cooked this morning. (It now reports itself as some 12F part, likely indicating that some of the bits which indicate the part type have failed.)

Now to get the part running from the internal oscillator instead of a crystal and responding to commands from the serial port. (Both of these should be fairly easy.)

After that I can start building the list of responses I want sent to the Honda Music Link (initial by-hand decoding of a sample conversation between my iPod and the HML can be seen here). Then once that’s all set it’s time to plug it into the car and hope things work as designed. If that works it’s time to design the PCB and see about producing a dozen or so.

Thanks very much and for directing me to pointers, structures (even though I didn’t use structures) and the unknown-to-me mikroBasic manual.

electronicsmaking thingsmoved from livejournal

8 Conductor Stranded Cable

Would any of you happen to have any eight-conductor stranded cable, preferably shielded?

I need to make some cables for part of the Honda Music Link stuff I’m working on, and I’m having difficulty finding this sort of cable in quantities less than 500′ or 1000′ rolls. I only need maybe… 20′ or so, at most. Even 10′ would be usable for my prototype stuffs.

Thanks!

electronicsmaking thingsmoved from livejournal

Silly iPod Remote

If things go as I hope, the following will take an iPod with it’s serial RX line connected to RB0 and skip it forward one track when the tactile switch RA0 on my dev board is pressed:

program ipod_next_track_test

dim buttonstate as byte

Soft_Uart_Init(PORTB, 1, 0, 9600, 0)

main:
while true
  if Button(PORTA, 0, 1, 1) then
    buttonstate = 255
  end if
  if buttonstate and Button(PORTA, 0, 1, 0) then
    Soft_Uart_Write(0xFF 0x55 0x03 0x02 0x00 0x08 0xF3)
    buttonstate = 0
  end if
wend

I just have to make an appropriate cable and I can test it. (The one I had made broke.)

Now, if that works I can get to work on making the EUSART on the chip respond to the Honda Music Link with enough intelligence to make it think that an iPod is present.

Then, if that works I can get to work on making some of the commands received from the HML act as the aforementioned button press, and I’ll have negated the function crappyness of the HML.

After that point I can make up a cheesy little PCB for the circuit and a PIC16F688 (the smallest PIC I could find with an EUSART) to sit permanently in the car. It shouldn’t need much more than the PIC, a crystal (because I’m not sure the mikroElektonika stuff can set the frequency on the internal oscillator), either a LM78L05 or small switching regulator, headers for the DIN connector cables, and a couple of caps. If I’m bored enough I might even make it my first SMT board.

automotiveelectronicsmaking thingsmoved from livejournal

TV Stand Ideas

So, I purchased an LCD TV earlier today via Costco’s website. (This one, if you are curious.)

Well, I need a stand for it. I think I’m going to make one, using a spare part from my desk. Due to a somewhat complicated story I have a spare right hand side desk surface from this shelf. I think I’m going to use it to make the LCD TV stand, but I’m not certain how to make the base.

First off, I think I want the base to be around 20″ off of the ground, so there should be room for a shelf in the middle. I’m thinking I’ll make the base out of black iron pipe, with a shelf supported with tees in the center. The shelf will probably be a random piece of melamine-covered stuffs from Home Depot / Lowes, fastened to the black iron pipe with some manner of pipe clamp.

Or, I could use multiple sets of flanges between some large, flat boards.

I was also thinking of large round PVC uprights, notched, with the shelves set into that.

Hmm. Any better ideas?

acquired thingsmaking thingsmoved from livejournal

NES 72-Pin Edge Connector Replacement

NES Internal Screw Removal

NES Internal Screw Removal

After acquiring some replacement NES 72-pin edge connectors to fix NES’ for both replika and I, I decided to take step-by-step photos of the replacement and write up a tutorial on it. So, I give you my NES 72-Pin Edge Connector Replacement Tutorial.

This is actually really easy to do, fixes the blinking-gray-screen problem which plagues almost every front-load NES (you know, the problem which were supposedly resolved by blowing on the connector in the cartridges), and can be done with just a screwdriver and replacement connector. There is no soldering or electrical repair skill needed for this.

Also, please Digg this story.

electronicsgamesmaking thingsmoved from livejournal

Atari 1050 is looking up!

Atari 1050 drive PCB with most of the electrolytic caps removed.

Atari 1050 drive PCB with most of the electrolytic caps removed.

Well, it appears that I’ve got the problem with the Atari 1050 sorted out. It seems that some of the 47μF caps (C42, C43, C69, C70) were bad, causing the shorts. I’ve also removed all of the other electrolytic caps and will be ordering replacements from Mouser tomorrow. (The board had looked like this before.)

I did make one pretty substantial mistake and inadvertently lift a trace on the top of the board when removing one larger caps. The hole really didn’t seem through-plated and the leg of the capacitor didn’t let go from it, and I peeled it right back. Thankfully it should be very easy to jump around with a 2″ piece of wire, so when I put it back in place I’ll do that.

Hopefully by the end of the week I’ll be able to properly image old 800XL floppies. Yay!

electronicsmaking thingsmoved from livejournal

Atari 800XL Composite Video Cable

Atari 800XL and TV

Atari 800XL and my TV

Thanks to this page about the Atari 800XL’s monitor connection output I was able to cobble together a composite video output cable for my parents old Atari 800XL. Thankfully the monitor connection is a standard DIN5 connector, so it was made by sacrificing a spare MIDI cable and an old red / white RCA cable pair.

After the SIO2PC adapter arrives and I’m able to either fix my Atari 1050 floppy drive or borrow one from someone I’ll begin imaging the whole box of floppies leftover from my youth. This will be done using Ape and ProSystem to copy all the old disks to images so they can be archived. Then they can either be run under emulation, or directly on the 800XL with the PC pretending to be the floppy drive (via the SIO2PC).

I should probably also consider doing something with the tape drive as well. Maybe pulling data / games off of that or something… Hmm…

electronicsmaking thingsmoved from livejournal

9090 Front Panel Proposal


My first layout idea for the front panel of a desktop 9090, scrawled on a piece of paper.
(Click for higher res image…)

So, that 9090 that I’ve been working on? I’m really needing a project to work on again, so I’m going to keep working on it. It needs two caps installed on the board, an enclosure built, and final assembly, wiring, and testing.

This afternoon while on a conference call I figured out the number of pots I’d need and scrawled an initial layout on a sheet of paper. That there is what I came up with.

I’m curious what those of you who have used similar drum synths (or have an opinion on physical UI design) might think.

I may switch the Rimshot Level and Handclap Level (lower right corner-ish bits) around, and the LEDs and Master Level knob (upper right corner) might need some adjusting. Maybe move the Ride Cymbal set above the Crash Cymbal set.

So uhm… yeah. Any ideas?

electronicsmaking thingsmoved from livejournal

Lightsticks In The Toilet


Toilet after pouring in the contents of green and red cyalume lightsticks.
(Click for more photos of playing with Lightsticks In The Toilet (photo gallery retired)…)

Tonight while going through a few old boxes in the basement I came across red and green lightsticks, still in the wrappers. So, I opened them and activated them. After playing around with them for a little while I decided to do something I played with when I was much younger, except this time I decided to take some pictures of it.

What did I do? I cut open the light sticks and poured them in the toilet, watching the slowly changing, swirling psychedelic glow emanating from my toilet. Unfortunately these toilets aren’t that great for it, as most of the oily phenyl oxalate ester and H2O2 ran down into the bottom of the toilet and out of view. Still, there were some interesting things to see.

  
(Click to view each image at a larger size…)

More photos of this all are available here in the Lightsticks In The Toilet (photo gallery retired) album. Some of the better photos are:

· Toilet water with just the green cyalume lightstick compound in it.
· Red and green cyalume lightsticks setting on the toilet lid.
· Closer image of the toilet water containing cyalume lightstick compound.
· Lightstick compound swirling down the toilet as it is flushed.
· Photo 1 of red and green cyalume lightstick compound in toilet.
· Photo 2 of red and green cyalume lightstick compound in toilet.
· Photo 3 of red and green cyalume lightstick compound in toilet.
· Photo 4 of red and green cyalume lightstick compound in toilet.
· Glowing sink containing the remains of the cut open lightsticks.
· Lightsick remnants and cuts in the sink where I set them so they wouldn’t make a mess.

around the housemaking thingsmoved from livejournal