Now that it's possible for the Arduino controller android application to import and export profiles, I thought it would be nice to have a place where we can exchange the profiles and the sketches. Please add a screenshot if possible. If you don't have a place to upload the files send them to marque.l@gmail.com and I'll post them here.

If you don't want to worry about other people controlling your project use the share function in the application to export the profile, it will remove the IP before sending it with you mail editor. Or just open the acp file with notepad and remove your IP manually.

Hi this is a work in progress. this is running on a arduino mega 2560 using transistor driven relays currently there are 5 digital light outputs and temp monitoring with min max and avg for both inside and out. there is going to be a total of 8 PWM zero crossing triac outputs for light dimmers and fan speed control, 8 digital triac outputs, 5 high current digital triac outputs, central heat and air control based on the difference in the inside and outside temps, motion detectors to count occupants entering and exiting the bedroom to automatically control lights, automatic door bell with visual image using an external ccd camera system, rfid and cellphone controlled door locks as well as entertainment center control using ir leds, digital pots, and relays. there is some code that isn't used at the moment if things look confusing. i am open to any feed back or suggestions.

Hello Marque , I just purchased the Pro App and I am starting to integrate some of the code functions that I had used in the original app you wrote . This is a slow process ( albiet fun ) but I truely am enjoying the results . How do I add in the button functions when they are not defined in the Android app ? I added the function names in the settings , but can't find where the string names are associated ?

The more I look at the values you have built in for the red , green and blue , the more I would like to use them to set levels for the 3 areas that I am controlling mood lighting now.

I hope to get some time this long weekend to devote to this amazing integration project !

Thanks for all you have done thus far ; Arduino is such agreat learning platform ...especially when combined with Android !Bob Durk

The only buttons that I am still having issues with is 11 and 12 ?? -the GET /?11 HTTP/1.1 and GET /?12 HTTP/1.1 appear on the serial monitor -all I see is the white line on the (content_main_top) and it should be returning the button names that I have programmed in the Arduino sketch to the Android ?

Just an aside , I did have all 12 buttons working in a sketch with the original free version ( not the Pro Free ) ...but when I updated the Free I wasn't able to get 10 - 12 working .

Here is where I am at now:-I built a 2nd test node in a project box with a 2nd Ethernet Shield and Uno -I added LEDS for testing the light levels from the 3 sliders on the tablet using Red=D5 Green=D6 Blue=D9--Note that D10 and D11 can't be used as PWM as the Ethernet Shield requires them --D3 I have used for IR ( to control stereo and CD player in my Node 1 " Home Control " -I added 2 on board tactile switches D7 and D8 and set them as active LOW ( will be used to toggle lights on / off later)-I also added a reset switch as the Ethernet shield is locking up ( or falling through ? ) with the code I am running -I can use buttons for " Bench Lt Off " " Bench Lt On " " Curio Lt Off " " Curio Lt On " " All Off " " All On " no problem

Here is the issue ...I don't fully understand all that is going on in the test sketch for the sliders.-I like the fact that the slider value is visible on the tablet , but I need to get the value to update when I change the value with the buttons or the corresponding slider.-as it is now , if I turn lights on and off with the buttons for a while and then change the slider settings , eventually it will stop responding. --the only way to get it working from that point is to reset the Ethernet Shield.

I will run the functions on the tablet for a while and see via the serial monitor where the problem occurs ...and if there is a common issue.

I will also post some of the code ( I am internet taught only , so don't expect much as i am still learning ! ) to see if it helps .- I tried to keep the functions for each button as simple as possible for testing

I shared the Work Bench profile with marque , as soon as I do a status update it locks up. I will try to spend more time looking through code , but I think I am tripping up on the blue part ...I think it is just IB that I am supposed to be using to send for the blue slider.I tried to attach code but it is too large ...I will send it laterBob

I shared the Work Bench profile with marque , as soon as I do a status update it locks up. I will try to spend more time looking through code , but I think I am tripping up on the blue part ...I think it is just IB that I am supposed to be using to send for the blue slider.I tried to attach code but it is too large ...I will send it laterBob

Hello Marque, I made the changes you suggested and I also removed parts of the code that I knew I would not need . All the sliders now work and display the value stored. Thanks for the help with that ....now to integrate the values and have the them diplayed when I select the " Update Status " button on the same layout. I had this in some other sketches but removed it to see if it was the cause of it locking up.I would also like the slider to drop to " 0 " when I push the " Curio Off " " Bar Off " " Bench Off " or " All Off " buttons to reflect the changes .Another nice thing would be to have the " Curio On " " Bar On " and " Bench On " buttons go green when the buttons are active. I seen this in a sketch that was submitted for relay control ...perhaps I can incorporate that ...

Marque,I went back to my profile #1 called Home Control and did the same changes for the slider names that you had suggested + removed some code that was not being used. It now operates without locking up and requiring a reset . I shared this as well , as the IR functions work well and I am sure other can modify it to their needs .Busy weekend ahead , but I will try to update as I make any changes.Bob

Here is the code that I am running for the " Home Control " profile.The " Status Update " button returns the light levels for each of the 3 lighting zones . The slider levels do not respond to the changes made with the switches , but the values displayed are updated with each button or slider adjustment.

/*********************** Marque's Arduino Controller Example ***********************//* Controller_Pro_Home_Control port all the values and use the status update button /* Bob_Automation_Marque_v1 this now works without locking up ....tested and shut down many times with no issues command after command /* renamed sliders as Marque suggested + removed functions that didn't appear to be required for this application /* Eth_2 demo box made with reset switch orange tack button pulls to ground for reset + added D7 and D8 switches as active LOW ***future use /* in box: Red-330 ohm to pin D5 + Grn-330 ohm to pin D6 + Blu-330 ohm to pin D9 ALL common cathode connect to ground/* use Work Bench profile in Arduino Controller Pro app/* now reports buffer values for the status update back to android app so they match the buffer content of valuered valuegreen and valueblue/*********************** For questions: marque.l@gmail.com ***********************/

#include <Ethernet.h>#include <SPI.h>#include <IRremote.h>

int RecievedString; // this is sent from android app and received by Ethernet shield int valuered; // couple with curioLight to make object int valuegreen; // couple with BarLight to make objectint valueblue; // couple with BenchLight to make objectint valueB; // andoid app can send this string value ...arduino will need to recognise string to decode results int valueC; // andoid app can send this string value ...arduino will need to recognise string to decode resultsint Channel; // not used at this time int Volume; // not used at this timeint x; //int y; //int Y; //int Z; //int blue_value ; // this is used in code nowint red_value; // added / not used nowint green_value; // added / not used now String string_x; //long nowtime; // long lastTime; //String readString = String(20); // string length up to 20 characters is read and stored in readString

int brightness = 0; // how bright the LED isint fadeAmount = 10; // how many points to fade the LED by with each button pushint button2=0; // push button int brightness2 = 0; // how bright LED2 is int fadeAmount2 = 10; // how many points to fade LED2 by with each button push

// Variables will change:int buttonPushCounter = 0; // counter for the number of button pressesint buttonState = 0; // current state of the buttonint lastButtonState = 0; // previous state of the button;//IRrecv irrec(RECV_PIN); // no IR receiver in this designIRsend irsend; // object to send the IR signal decode_results results; // actual IR pulses or string