gene098
Posts: 8
Joined: Thu Dec 14, 2017 8:07 pm

Raspberry Pi App Programs Recommendations

Thu Dec 14, 2017 8:20 pm

Hi Everyone!

Im trying to make a showcase for a statue and since the statue is not that big,
then the lights needed to be smaller.

So I wanted to use these RGB LED common Cathodes to light the statue from whichever angle I wanted.

https://www.amazon.com/Tricolor-Multico ... B01C19ENDM

However the problem is that Im not sure where I can find an App for ios or Android so I can control the Lights through Bluetooth or Wifi
The aspects Im looking to control are...

-Brightness
-Hue
-Set Presets (like Preset 1 could be ambient lights, Preset 2 could be Red and Blue lighting mood)

So if anyone could recommend an app or step by step tutorials on how to make my own simple app to control the above aspects, that would be immensely helpful

Thanks guys!


======================
P.S. The reason I dont just try to make my own program is because I am a total beginner at programming, I come from a Illustration background.

broe23
Posts: 903
Joined: Thu Jan 28, 2016 9:35 pm
Location: Central IL
Contact: Website

Re: Raspberry Pi App Programs Recommendations

Fri Dec 15, 2017 7:33 am

You should just use a hat. Why use something else and having to need to use another SBC to achieve what you want. Of course you could use a Pi Zero for control of the spotlighting and the Pi 3 to shoot an image to allow you to manipulate it through video software if you wish. It depends on your budget and what you wish to achieve.
Ren: Now listen, Cadet. I've got a job for you. See this button? Ren: Don't touch it! It's the History Eraser button, you fool! Stimpy: So what'll happen? Ren: That's just it. We don't know. Maybe something bad, maybe something good.

User avatar
Jednorozec
Posts: 809
Joined: Sun Nov 24, 2013 2:17 pm
Location: Deposit, NY

Re: Raspberry Pi App Programs Recommendations

Fri Dec 15, 2017 7:57 am

Using NeoPixels would make your project easier https://www.adafruit.com/product/1938
The most important leg of a three legged stool is the one that's missing.
It's called thinking. Why don't you try it sometime?

gene098
Posts: 8
Joined: Thu Dec 14, 2017 8:07 pm

Re: Raspberry Pi App Programs Recommendations

Fri Dec 15, 2017 9:05 pm

Jednorozec wrote:
Fri Dec 15, 2017 7:57 am
Using NeoPixels would make your project easier https://www.adafruit.com/product/1938
Would I be able to use the clear common cathodes I bought on the Neo pixels?

I wasnt so into them because they were diffused lighting whereas I needed a stronger clear spotlight where I could also control the RGB for

gene098
Posts: 8
Joined: Thu Dec 14, 2017 8:07 pm

Re: Raspberry Pi App Programs Recommendations

Fri Dec 15, 2017 9:12 pm

broe23 wrote:
Fri Dec 15, 2017 7:33 am
You should just use a hat. Why use something else and having to need to use another SBC to achieve what you want. Of course you could use a Pi Zero for control of the spotlighting and the Pi 3 to shoot an image to allow you to manipulate it through video software if you wish. It depends on your budget and what you wish to achieve.
Hi,

As I am new to all of this may I ask if you could explain a "hat" and "SBC" & what they help to do in the specific scenario of driving multiple spotlights?

I am okay with any method to control the spotlighting but so far Ive only been recommended a Pi Zero and Arduino and was told the Pi Zero could be easier to drive multiple lights and less expensive than the arduino as it can only drive a few lights each board = I would need to buy multiple arduino boards with added on bluetooth = more expensive

Than if I just used the Pi 0 as the main control with bluetooth and wife and then connected multiple arudinos
(Without bluetooth = cheaper) to it along with Mosfets to drive the multiple lights.

User avatar
Jednorozec
Posts: 809
Joined: Sun Nov 24, 2013 2:17 pm
Location: Deposit, NY

Re: Raspberry Pi App Programs Recommendations

Fri Dec 15, 2017 11:19 pm

gene098 wrote:
Fri Dec 15, 2017 9:05 pm
Jednorozec wrote:
Fri Dec 15, 2017 7:57 am
Using NeoPixels would make your project easier https://www.adafruit.com/product/1938
Would I be able to use the clear common cathodes I bought on the Neo pixels?

I wasnt so into them because they were diffused lighting whereas I needed a stronger clear spotlight where I could also control the RGB for
The NeoPixels would be a replacement for your common cathode leds. Adafruit sells a large variety. Here are some that don't seem to be diffused https://www.adafruit.com/product/2686 They also have code that runs on the RPi to drive them.
The most important leg of a three legged stool is the one that's missing.
It's called thinking. Why don't you try it sometime?

gene098
Posts: 8
Joined: Thu Dec 14, 2017 8:07 pm

Re: Raspberry Pi App Programs Recommendations

Fri Dec 15, 2017 11:49 pm

Jednorozec wrote:
Fri Dec 15, 2017 11:19 pm
gene098 wrote:
Fri Dec 15, 2017 9:05 pm
Jednorozec wrote:
Fri Dec 15, 2017 7:57 am
Using NeoPixels would make your project easier https://www.adafruit.com/product/1938
Would I be able to use the clear common cathodes I bought on the Neo pixels?

I wasnt so into them because they were diffused lighting whereas I needed a stronger clear spotlight where I could also control the RGB for
The NeoPixels would be a replacement for your common cathode leds. Adafruit sells a large variety. Here are some that don't seem to be diffused https://www.adafruit.com/product/2686 They also have code that runs on the RPi to drive them.
Hi,

The Neopixel link you sent was for the diffused one.
The only clear one I found, was also discontinued
https://www.adafruit.com/product/1837

broe23
Posts: 903
Joined: Thu Jan 28, 2016 9:35 pm
Location: Central IL
Contact: Website

Re: Raspberry Pi App Programs Recommendations

Sat Dec 16, 2017 6:30 am

gene098, a Hat plugs into the pin header. Check ebay and Amazon for that one that adafruit shows discontinued.
Ren: Now listen, Cadet. I've got a job for you. See this button? Ren: Don't touch it! It's the History Eraser button, you fool! Stimpy: So what'll happen? Ren: That's just it. We don't know. Maybe something bad, maybe something good.

gene098
Posts: 8
Joined: Thu Dec 14, 2017 8:07 pm

Re: Raspberry Pi App Programs Recommendations

Sat Dec 16, 2017 9:06 am

Jednorozec wrote:
Fri Dec 15, 2017 11:19 pm
gene098 wrote:
Fri Dec 15, 2017 9:05 pm
Jednorozec wrote:
Fri Dec 15, 2017 7:57 am
Using NeoPixels would make your project easier https://www.adafruit.com/product/1938
Would I be able to use the clear common cathodes I bought on the Neo pixels?

I wasnt so into them because they were diffused lighting whereas I needed a stronger clear spotlight where I could also control the RGB for
The NeoPixels would be a replacement for your common cathode leds. Adafruit sells a large variety. Here are some that don't seem to be diffused https://www.adafruit.com/product/2686 They also have code that runs on the RPi to drive them.
I was able to find these
not sure if theyre the same ones
https://www.sparkfun.com/products/12999

but now onto the next question, why would using Neopixels make what Im trying to do easier?

I still need a ios or android app and so far it doesnt seem like any exist

User avatar
rpdom
Posts: 14086
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Raspberry Pi App Programs Recommendations

Sat Dec 16, 2017 9:22 am

I think there is something missing here.

You've mentioned some lights you want to control. You've mentioned you want an Android or iOs app.

Where does the Pi come in to this?

If I wanted to control lighting like that I'd get some Neopixel strips (aka WS2812B for the non-branded, cheaper version) and connect them to a Pi Zero. There is a driver for those for C and Python with some example code to change the colours and intensities. If would be possible to make some code that linked into a local website (running on the Pi) that will give options to change the lights, but it will take a little bit of coding. The Android/Ios device could access that website.

The advantage of Neopixels/WS281x LEDs is that you can chain many of them together using just 3 pins on the Pi (Power, Ground and Data) and set the colour/brightness of each one in the chain individually.

gene098
Posts: 8
Joined: Thu Dec 14, 2017 8:07 pm

Re: Raspberry Pi App Programs Recommendations

Sun Dec 17, 2017 7:50 am

rpdom wrote:
Sat Dec 16, 2017 9:22 am
I think there is something missing here.

You've mentioned some lights you want to control. You've mentioned you want an Android or iOs app.

Where does the Pi come in to this?

If I wanted to control lighting like that I'd get some Neopixel strips (aka WS2812B for the non-branded, cheaper version) and connect them to a Pi Zero. There is a driver for those for C and Python with some example code to change the colours and intensities. If would be possible to make some code that linked into a local website (running on the Pi) that will give options to change the lights, but it will take a little bit of coding. The Android/Ios device could access that website.

The advantage of Neopixels/WS281x LEDs is that you can chain many of them together using just 3 pins on the Pi (Power, Ground and Data) and set the colour/brightness of each one in the chain individually.

The reason is that I need to make spotlights to light a sculpture, led strips wont produce the same results.

I am going to put the led rgbs into plastic small bottle caps to make minature spotlights.

The raspberry Pi was meant to control the multiple spotlights by connecting it to an ios or android app so I can control the color and brightness of each spotlight

jbudd
Posts: 795
Joined: Mon Dec 16, 2013 10:23 am

Re: Raspberry Pi App Programs Recommendations

Sun Dec 17, 2017 11:10 am

This page describes controlling a single RGB LED with software PWM from a Raspberry Pi: http://www.instructables.com/id/Raspber ... Using-PWM/

I don't know how many LEDs you could control like that simultaneously, nor how bright it would be without using transistors and a seperate power supply.

One way to control more LEDs is to use Arduinos. This page gives an example: http://randomnerdtutorials.com/esp8266- ... or-picker/ They use an ESP8266 board, which is basically an Arduino with built in WiFi for a fraction of the cost.

The Pi then provides the user interface, which could be a web page, and send instructions to the LED boards.
I would use Node-Red to construct the web page and communicate with the ESP8266s.

If you go for ESP8266s, look for the kind which are powered by USB and plug into a breadboard: Wemos D1 Mini or Nodemcu v1 (not v3) or Adafruit Feather Huzzah

gene098
Posts: 8
Joined: Thu Dec 14, 2017 8:07 pm

Re: Raspberry Pi App Programs Recommendations

Mon Dec 18, 2017 5:09 am

jbudd wrote:
Sun Dec 17, 2017 11:10 am
This page describes controlling a single RGB LED with software PWM from a Raspberry Pi: http://www.instructables.com/id/Raspber ... Using-PWM/

I don't know how many LEDs you could control like that simultaneously, nor how bright it would be without using transistors and a seperate power supply.

One way to control more LEDs is to use Arduinos. This page gives an example: http://randomnerdtutorials.com/esp8266- ... or-picker/ They use an ESP8266 board, which is basically an Arduino with built in WiFi for a fraction of the cost.

The Pi then provides the user interface, which could be a web page, and send instructions to the LED boards.
I would use Node-Red to construct the web page and communicate with the ESP8266s.

If you go for ESP8266s, look for the kind which are powered by USB and plug into a breadboard: Wemos D1 Mini or Nodemcu v1 (not v3) or Adafruit Feather Huzzah
So in essence, since there isnt an available app for what Im looking for, and since making an app is more adv programming

The better way would be to use a webpage to control the lights

and the webpage is browsed by the mini computer/Pi 0

and from there use the wifi from the phone to connect to the Pi0 and use it to access the web and go to the webpage and control the leds color and intensity

Is this the right interpretation of what you are saying?

gene098
Posts: 8
Joined: Thu Dec 14, 2017 8:07 pm

Re: Raspberry Pi App Programs Recommendations

Mon Dec 18, 2017 6:31 am

jbudd wrote:
Sun Dec 17, 2017 11:10 am
This page describes controlling a single RGB LED with software PWM from a Raspberry Pi: http://www.instructables.com/id/Raspber ... Using-PWM/

I don't know how many LEDs you could control like that simultaneously, nor how bright it would be without using transistors and a seperate power supply.

One way to control more LEDs is to use Arduinos. This page gives an example: http://randomnerdtutorials.com/esp8266- ... or-picker/ They use an ESP8266 board, which is basically an Arduino with built in WiFi for a fraction of the cost.

The Pi then provides the user interface, which could be a web page, and send instructions to the LED boards.
I would use Node-Red to construct the web page and communicate with the ESP8266s.

If you go for ESP8266s, look for the kind which are powered by USB and plug into a breadboard: Wemos D1 Mini or Nodemcu v1 (not v3) or Adafruit Feather Huzzah
Also for the example you gave
http://randomnerdtutorials.com/esp8266- ... or-picker/

Can he control multiple LEDS?

Im looking to put 4 of the LEDs per spotlight, and probably have about 4-5 spotlights = 16-20 total LEDS

jbudd
Posts: 795
Joined: Mon Dec 16, 2013 10:23 am

Re: Raspberry Pi App Programs Recommendations

Mon Dec 18, 2017 7:46 am

Way beyond my experience, but 20 RGB LEDs = 60 PWM channels and perhaps 60 mosfet transistors?

You can get more channels with a PWM controller like this https://www.adafruit.com/product/815 (16 channels)

Also on Adafruit look at their neopixel jewels - 7 individually addressable neopixels on a small circular board with 3 wires for power and control.

User avatar
bensimmo
Posts: 3951
Joined: Sun Dec 28, 2014 3:02 pm
Location: East Yorkshire

Re: Raspberry Pi App Programs Recommendations

Mon Dec 18, 2017 8:59 am

The tri-colour LED can be programmed in python with gpiozero (a python module) with ease.
Just treat them like normal LED's

The app part is the problem as I means someone has had to make it, search the app stores and see if anyone has.

A lot drop to using webpages

There is also Google IoT you may want to look at instars of Raspbian.

As an alternative (never done it)
It may be easier to buy an cheap household WiFi bulb and take it apart as it probably has an app for it. Just rewire the LEDs from inside it.
If it a low voltage one then yous can hook it to 12V.

Return to “General discussion”