Coder Social home page Coder Social logo

finsprings / arduinaap Goto Github PK

View Code? Open in Web Editor NEW
135.0 135.0 24.0 92 KB

An Arduino library for controlling iPods (and some features for the iPod app on iPhones and iPod Touches) via the Apple Accessory Protocol (AAP)

Home Page: http://finsprings.github.com/arduinaap/

C++ 100.00%

arduinaap's People

Contributors

finsprings avatar ivankravets avatar per1234 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

arduinaap's Issues

How to build the library for Linux platform

Hi sir,
I want to control my iPhone/iPod from Linux(such play/pause). But am not getting how to acheive it.
please can you assist me how you build the library for Arduino .

If possible, please replay as soon as possible

Thank you.

Advanced Remote mode isn't working with my iPhone 3GS

Simple Remote mode works with my iPhone 3GS but Advanced Remote mode does not. I get back the feedback response with an error 4 (invalid parameter). I get this same error on my iPod Photo if I haven't placed it into Advanced Remote mode, so it looks like the enable() part may not be working on the iPhone.

At first I thought this was because I'd omitted the 500KOhm resistor for pin 21 on my second remote build. The nearest I had was a 560KOhm but adding that didn't help. I've ordered some 500KOhms in case that's really all that's wrong but I'm doubtful.

AdvancedRemote_polling example sketch isn't picking a playlist properly

The AdvancedRemote_polling example sketch switches to the main library playlist then asks for the current playlist's number of songs. However this returns 0 if the iPod wasn't already in a playlist, so it errors out trying to play a song. If I take the iPod out of advanced mode, go pick a song in a playlist then run the sketch it will return the number of songs in that playlist, jump to the one the sketch wants (count/2) and work as expected.

I need to try making it pick a playlist via switchToItem rather than switchToMainLibraryPlaylist and see what that does.

Make all Advanced Remote sketches call disable in setup() and update comment block

I put a call to AdvancedRemote.disable() at the bottom of setup in the polling example. This is super handy because you can reset the Arduino and it will make the iPod go back to simple mode - i.e. the mode where you can control the iPod via the iPod's interface.

If I do that then I can get rid of the scary warning comment block and just tell people to reset the Arduino to get their iPod out of advanced mode.

Don't get any feedback of my iPod

I'm using:

  • iPod classic 5th generation
  • Seeduino (ATmega168, running in 3,3V-mode, so I can connect it directly to the iPod via PodBreakout 1.3)
  • instead of the missing second hardware-serial I use a working serial-LCD (Pin6) and turned Serial3 to advancedRemote.setSerial(Serial);

I modified the AdvancedRemote_polling in a way, that every Serial.print became a lcd.at for outputting the feedback on the lcd - but I got nothing.

Having tried lcd.at at other steps of the sketch I found out, that the lcd is working right (a simple count-up inside the loop() via i++ and a "button high"/"button low" to test whether the button is reacting)

Pushing the button puts the iPod successfully into advanced mode (showing that "OK to disconnect" message), and most of the time the iPod switches between play and pause after pressing the button (I mean it seems that about 4 of 5 pushs are ignored by the iPod although I can see on the lcd, that the button went low).

Can you tell me, what I'm doing wrong? Or is it the ATmega168, having too less power or something like that?

Best regards from the lower rhine area in Germany,
and with many many thanks für your work,
markus

ps: please excuse my english as well as me if I used the wrong place for my question

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.