{"id":8724,"date":"2007-04-12T16:48:00","date_gmt":"2007-04-12T20:48:00","guid":{"rendered":"https:\/\/nuxx.net\/blog\/2007\/04\/12\/silly-ipod-remote\/"},"modified":"2026-07-01T11:35:21","modified_gmt":"2026-07-01T15:35:21","slug":"silly-ipod-remote","status":"publish","type":"post","link":"https:\/\/nuxx.net\/blog\/2007\/04\/12\/silly-ipod-remote\/","title":{"rendered":"Silly iPod Remote"},"content":{"rendered":"<p>If things go as I hope, the following will take an iPod with it&#8217;s serial RX line connected to RB0 and skip it forward one track when the tactile switch RA0 on my dev board is pressed:<\/p>\n<blockquote><p><tt>program ipod_next_track_test<\/p>\n<p>dim buttonstate as byte<\/p>\n<p>Soft_Uart_Init(PORTB, 1, 0, 9600, 0)<\/p>\n<p>main:<br \/>\nwhile true<br \/>\n&nbsp;&nbsp;if Button(PORTA, 0, 1, 1) then<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;buttonstate = 255<br \/>\n&nbsp;&nbsp;end if<br \/>\n&nbsp;&nbsp;if buttonstate and Button(PORTA, 0, 1, 0) then<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;Soft_Uart_Write(0xFF 0x55 0x03 0x02 0x00 0x08 0xF3)<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;buttonstate = 0<br \/>\n&nbsp;&nbsp;end if<br \/>\nwend<\/tt><\/p><\/blockquote>\n<p>I just have to make an appropriate cable and I can test it. (The one I had made broke.)<\/p>\n<p>Now, if that works I can get to work on making the EUSART on the chip respond to the <a href=\"http:\/\/nuxx.net\/wiki_archive\/A\/Honda_Music_Link_iPod_Adapter_Review\">Honda Music Link<\/a> with enough intelligence to make it think that an iPod is present.<\/p>\n<p>Then, if <em>that<\/em> works I can get to work on making some of the commands received from the HML act as the aforementioned button press, and I&#8217;ll have negated the <strike>function<\/strike> crappyness of the HML.<\/p>\n<p>After that point I can make up a cheesy little PCB for the circuit and a <a href=\"http:\/\/www.microchip.com\/stellent\/idcplg?IdcService=SS_GET_PAGE&#038;nodeId=1335&#038;dDocName=en010215\">PIC16F688<\/a> (the smallest PIC I could find with an EUSART) to sit permanently in the car. It shouldn&#8217;t need much more than the PIC, a crystal (because I&#8217;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&#8217;m bored enough I might even make it my first SMT board.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If things go as I hope, the following will take an iPod with it&#8217;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 &nbsp;&nbsp;if Button(PORTA, 0, 1,\u2026<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,6,11,34],"tags":[],"class_list":["post-8724","post","type-post","status-publish","format-standard","hentry","category-automotive","category-electronics","category-making-things","category-moved-from-livejournal"],"_links":{"self":[{"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/posts\/8724","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/comments?post=8724"}],"version-history":[{"count":1,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/posts\/8724\/revisions"}],"predecessor-version":[{"id":12906,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/posts\/8724\/revisions\/12906"}],"wp:attachment":[{"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/media?parent=8724"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/categories?post=8724"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/tags?post=8724"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}