Pages: [1]   Go Down
Author Topic: help! photocell needs to trigger mp3  (Read 531 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 2
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm brand new to arduino, and I've been digging my own grave by making everything more complex than it needs to be-

I know how to wire the board, but I'm clueless as to how to code it.  Basically, I need to make it so that when my photocell detects light, it triggers an mp3 on my computer or through iTunes (I have a mac).  If someone could so kindly steer me towards a code that would work for this, I would be incredibly grateful.


Thank you so much!
Emily
Logged

Copenhagen / Denmark
Offline Offline
Edison Member
*
Karma: 6
Posts: 2360
Do it !
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You will need some software on the Mac that can read the serial port and start the MP3 file playing.
Arduino nows nothing about Mac's / PC's / folders / files and all that.
 
It's easy to set up the photoresistor as a voltage divider and use Analog read on the arduino board to get a "light level" reading. Then send something over the seral line to the Mac, but theres no way the Arduino board can start playing a MP3 file on the Mac. Some program on the Mac must be listening on the serial port for what the Arduino board sends and take action.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 2
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
You will need some software on the Mac that can read the serial port and start the MP3 file playing.
Arduino nows nothing about Mac's / PC's / folders / files and all that.
 
It's easy to set up the photoresistor as a voltage divider and use Analog read on the arduino board to get a "light level" reading. Then send something over the seral line to the Mac, but theres no way the Arduino board can start playing a MP3 file on the Mac. Some program on the Mac must be listening on the serial port for what the Arduino board sends and take action.

thank you!  I think I got it now.
Logged

Pages: [1]   Go Up
Jump to: