# bbejj123

• bbejj123 commented on simonfrfr's instructable RGB LED transition (Arduino)3 months ago

I've programmed two other ways to transition this, and working on a 3rd that takes into account how LED's are observed by the human eye, but for the time being for a simpler to understand program (as I feel programming should be just as much about getting the job done as it should be about clairty) you can try looking through this.intconstRed=3,/* Pin 3 */Blue=5,/* Pin 5 */Green=6;/* Pin 6 */void RGB(int R,int G,int B){analogWrite(Red,R); analogWrite(Green,G); analogWrite(Blue,B); delay(25);}void setup(){}void loop(){int r=0,g=0,b=0;r =255;g =0;b =0;for(int i =0; i <256;++i){RGB(r,i,b);}r =255; g =255;b =0;for(int i =255; i >=0;--i){RGB(i,g,b);} r =0;g =255;b =0;for(int i =0; i <256;++i){RGB(r,g,i);}r =0;g =255;b =255;for(int i =255; i >=0;--i){RGB(r,i,b);}r =0;g =0;b =255;f...see more »I've programmed two other ways to transition this, and working on a 3rd that takes into account how LED's are observed by the human eye, but for the time being for a simpler to understand program (as I feel programming should be just as much about getting the job done as it should be about clairty) you can try looking through this.intconstRed=3,/* Pin 3 */Blue=5,/* Pin 5 */Green=6;/* Pin 6 */void RGB(int R,int G,int B){analogWrite(Red,R); analogWrite(Green,G); analogWrite(Blue,B); delay(25);}void setup(){}void loop(){int r=0,g=0,b=0;r =255;g =0;b =0;for(int i =0; i <256;++i){RGB(r,i,b);}r =255; g =255;b =0;for(int i =255; i >=0;--i){RGB(i,g,b);} r =0;g =255;b =0;for(int i =0; i <256;++i){RGB(r,g,i);}r =0;g =255;b =255;for(int i =255; i >=0;--i){RGB(r,i,b);}r =0;g =0;b =255;for(int i =0; i <256;++i){RGB(i,g,b);}r =255;g =0;b =255;for(int i =255; i >=0;--i){RGB(r,g,i);}delay(1000);}

I've programmed two other ways to transition this, and working on a 3rd that takes into account how LED's are observed by the human eye, but for the time being for a simpler to understand program (as I feel programming should be just as much about getting the job done as it should be about clairty) you can try looking through this.This is the simplest one I have so far.int const Red=3, /* Pin 3 */ Blue=5, /* Pin 5 */ Green=6; /* Pin 6 */void RGB(int R,int G,int B){analogWrite(Red,R); analogWrite(Green,G); analogWrite(Blue,B); delay(25);}void setup(){}void loop(){//RED to YELLOWint r =255, g =0, b =0;for(int i =0; i <=255;++i){RGB(r,i,b);} //YELLOW to GREENr =255; g =255;b =0;for(int i =255; i >=0;--i){RGB(i,g,b);} //GREEN to TEALr =0;g =255;b =0;for(int i =0; i <=255;++i){RGB(r...see more »I've programmed two other ways to transition this, and working on a 3rd that takes into account how LED's are observed by the human eye, but for the time being for a simpler to understand program (as I feel programming should be just as much about getting the job done as it should be about clairty) you can try looking through this.This is the simplest one I have so far.int const Red=3, /* Pin 3 */ Blue=5, /* Pin 5 */ Green=6; /* Pin 6 */void RGB(int R,int G,int B){analogWrite(Red,R); analogWrite(Green,G); analogWrite(Blue,B); delay(25);}void setup(){}void loop(){//RED to YELLOWint r =255, g =0, b =0;for(int i =0; i <=255;++i){RGB(r,i,b);} //YELLOW to GREENr =255; g =255;b =0;for(int i =255; i >=0;--i){RGB(i,g,b);} //GREEN to TEALr =0;g =255;b =0;for(int i =0; i <=255;++i){RGB(r,g,i);} //TEAL to BLUEr =0;g =255;b =255;for(int i =255; i >=0;--i){RGB(r,i,b);} //BLUE to MAGENTAr =0;g =0;b =255;for(int i =0; i <=255;++i){RGB(i,g,b);}//MAGENTA to REDr =255;g =0;b =255;for(int i =255; i >=0;--i){RGB(r,g,i);} delay(1000);}

• bbejj123 commented on DrWilson's instructable Ultimate Raspberry Pi Home Server9 months ago

recently I have been having a lot of issues getting a ntfs drive working with the new raspberry pi images, i opted to use ex fat format. If you have the ability to change formatting I would highly suggest it, it just seems to work much better

its a pretty quick and easy fix.In your command line type sudo raspi-configexpand filesystem should be the first choice follow the prompts and reboot the pi.now try setting things up, everything should work now

• It doesn't show very well but essentially you are piping the string being echoed into bluetoothctl and using \n to denote a new line allowing you to insert as many commands as needed within bluetoothctl

It doesn't show very well but essentially you are piping the string being echoed into bluetoothctl and using \n to denote a new line allowing you to insert as many commands as needed within bluetoothctl

Not sure what happened but that should be echo "connect AA:BB:CC:DD:EE:FF \nquit" | bluetoothctl In place of AA:BB:CC:DD:EE:FFUse your devices MAC address

Not sure if anyone else is trying to use this in a car which would require a shutdown script upon ignition shutoff. Additionally wanting auto pairing as soon as it boots.I made the following adjustments.Adding to my /etc/rc.local file just about exit 0echo "connect \nquit" | bluetoothctlThis will autopair your phone or whatever to the device given its available at login.You may need to manually pair and trust the device first through bluetoothctl but this was the only working way I have found to work with this issue.I am running this on a wheezy 1-1-15 Distro in berryboot.

• This was great! I was lazy and skipped to step 10, and it was amazing. Works great, I'm running on a 5-5-15 wheezy Distro in berry boot for a fun little car project. The only issue is that when I turn on the power it becomes discoverable and I have to manually click connect for the Bluetooth to start. Is there anyway to get it to automatically pair with my iPhone as soon as it gets booted?

I have found adding the commandsudo rfcomm connect 0 MAC address 1 To the end of my /etc/rc.local works for auto pairing but it causes issues with my shutdown script with the car switch from mausberry circuits.com

• 10 months ago

I'm missing the audio.config file what do I need in there for it to work?

Also with the new raspbian updates is this still possible by using this same tutorial?

Also with the new raspbian updates is this still possible by using this same tutorial?