Wiring assistance, combining VS1053, Accelerometer and LED Strip

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
joshuakane
 
Posts: 282
Joined: Sat Apr 13, 2013 4:40 pm

Wiring assistance, combining VS1053, Accelerometer and LED Strip

Post by joshuakane »

Hello,

I wanted to use the Arduino Micro controller to create a project that uses light, sound and motion. This project would use the following Adafruit products

Arduino Micro http://www.adafruit.com/product/1315
VS1053 Breakout http://www.adafruit.com/products/1381
Digital RGB LED's http://www.adafruit.com/product/306
Triple-Axis Accelerometer http://www.adafruit.com/product/1231

I was going to use the following pins, but wanted to make sure they would work

Accelerometer:

GND->GND
VIN->+5v
SDA->SDA (Analog 4)A4
SCL->SCL (Analog 5)A5

VS1053

VCC -> 5v
GND -> GND

CLK -> Arduino 13
MISO -> Arduino 12
MOSI -> Arduino 11
CS -> Arduino 10
RST -> Arduino 9
XDCS-> Arduino 8
SDCS -> Arduino 4
DREQ -> Arduino 3

Digital Leds (x2 Strips)


VCC -> 5v
GND -> GND

Clock 1 -> 5
Data 1 -> 6
Clock 2 -> 7
Data 2 -> ????

So I am not sure if I have enough pins to do what I am trying.

Any and all assistance would be appreciated.

Thanks,

Joshua

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Wiring assistance, combining VS1053, Accelerometer and LED Strip

Post by adafruit_support_bill »

If you can chain the two strips you will only need the two pins. Another option is to use the neopixel strips. http://www.adafruit.com/index.php?main_ ... ixel+strip
These only require 1 pin to drive.

User avatar
joshuakane
 
Posts: 282
Joined: Sat Apr 13, 2013 4:40 pm

Re: Wiring assistance, combining VS1053, Accelerometer and LED Strip

Post by joshuakane »

Hey Bill,

Thanks for the reply.

I purchased 5 meters of the other lights, so I kind of wanted to use them. Can I connect both 1m segments to the same clock and data pins so they in essence "mirror" each other? I would be fine going that way. If I can't do that, is there an alternative pin-out scheme that will work? If all else fails I can always purchase the Neopixels, but I was hoping to save some money and not have to re-order anything for this project.

Thanks,

Joshua

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Wiring assistance, combining VS1053, Accelerometer and LED Strip

Post by adafruit_support_bill »

If you connect them in parallel, they will mirror each other.

Also, it appears you are not using all the analog pins. These can be used for digital IO as well.

User avatar
joshuakane
 
Posts: 282
Joined: Sat Apr 13, 2013 4:40 pm

Re: Wiring assistance, combining VS1053, Accelerometer and LED Strip

Post by joshuakane »

Thanks Bill,

I ordered the 60 LED's per meter Neo-Pixels anyway :-) I think they will bring more of a "Wow Factor" to the project. I should have them by Thursday. Thanks again for all the help!

-- Joshua

User avatar
joshuakane
 
Posts: 282
Joined: Sat Apr 13, 2013 4:40 pm

Re: Wiring assistance, combining VS1053, Accelerometer and LED Strip

Post by joshuakane »

I have started the easy part of the project, roughing out the hardware. I still need to supply power to the Arduino Micro, find a small speaker to attach to the VS1053, as well as program the Arduino, but the installation thus far has gone smoothly. Any suggestions for a speaker and power supply would be greatly appreciated. Here are some photos of the work in progress, let me know what you guys think.

-- Joshua

Image
Image
Image
Image
Image
Image
Image
Image

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Wiring assistance, combining VS1053, Accelerometer and LED Strip

Post by adafruit_support_bill »

Beautiful! Nicely done.
I still need to supply power to the Arduino Micro, find a small speaker to attach to the VS1053,
Most of the battery solutions in this guide would work for the Micro as well: http://learn.adafruit.com/battery-power ... and-strips

As for a speaker. The VS1053 will not drive one directly. You will need some amplification. You could cannibalize a set of inexpensive amplified computer or iPod speakers. We also have this amplifier module: http://www.adafruit.com/products/987

User avatar
joshuakane
 
Posts: 282
Joined: Sat Apr 13, 2013 4:40 pm

Re: Wiring assistance, combining VS1053, Accelerometer and LED Strip

Post by joshuakane »

Thanks BIll!

The Sword was fabricated by Sean Bradley, he is an awesome artist. This one is from the game "Halo".


I was going to do the Phono-Out from the VS1053, as it looks like your amplifier is out of stock. I can then have that attach to a pair of amplified speakers.

For the battery, i was going to use 2 nine volt batteries but have them in series before your power buck, so I deliver a clean 5v to the processor and lights

http://www.adafruit.com/products/1385

Would i still need to use a diode if I did that. I was also going to put in a traditional on/off slide switch in the hilt to turn off the sword while not in use.

Thanks,

Joshua

User avatar
joshuakane
 
Posts: 282
Joined: Sat Apr 13, 2013 4:40 pm

Re: Wiring assistance, combining VS1053, Accelerometer and LED Strip

Post by joshuakane »

One more question, as I have only played with the Flora.

When connected via USB, when I am programming the controller, will it be powered by the USB Bus?

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Wiring assistance, combining VS1053, Accelerometer and LED Strip

Post by adafruit_support_bill »

For the battery, i was going to use 2 nine volt batteries but have them in series before your power buck, so I deliver a clean 5v to the processor and lights
9v alkalines do not fare well in high-drain applications. I'd suggest LiPo. You could chain 2 or 3 of our smaller cells in similar space for a lot more run-time. If you prefer not to hassle with the recharging, you can build a pack from a few CR123 primary cells.

If you are using the UBEC, you don't need a diode. It will put out a solid 5v.

User avatar
joshuakane
 
Posts: 282
Joined: Sat Apr 13, 2013 4:40 pm

Re: Wiring assistance, combining VS1053, Accelerometer and LED Strip

Post by joshuakane »

What do you guys sell here that I can buy? :-)

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Wiring assistance, combining VS1053, Accelerometer and LED Strip

Post by adafruit_support_bill »

Here is our selection of LiPo cells & chargers: http://www.adafruit.com/index.php?main_ ... rch&q=lipo
We have a tutorial on multi-cell charging here too: http://learn.adafruit.com/multi-cell-lipo-charging

User avatar
joshuakane
 
Posts: 282
Joined: Sat Apr 13, 2013 4:40 pm

Re: Wiring assistance, combining VS1053, Accelerometer and LED Strip

Post by joshuakane »

I went with the LiPo batteries

Purchased:
2x 3.7v 1300mAh: http://www.adafruit.com/product/258
1x Charger: http://www.adafruit.com/product/259

I also picked up some JST-PH Battery Extension Cables so I can easily connect and disconnect them from the unit I am building.
http://www.adafruit.com/products/1131

As I mentioned before I also have the 5V UBEC
http://www.adafruit.com/products/1385

For the wiring I was going to do something like this, do you think it will work correctly for the microcontroller, LED's, Accelometer and VS1053?

Image

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Wiring assistance, combining VS1053, Accelerometer and LED Strip

Post by adafruit_support_bill »

You have those LiPo cells connected in parallel which would give you 3.7v. You would need to connect them in series. In series, you will get about 7.4v, which is well within the UBEC 5-23v inpt range.

User avatar
joshuakane
 
Posts: 282
Joined: Sat Apr 13, 2013 4:40 pm

Re: Wiring assistance, combining VS1053, Accelerometer and LED Strip

Post by joshuakane »

Here is the sword running the strand test for the lights.

https://www.youtube.com/watch?v=qTzKOIkfWZw

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”