Looking for someone to write a program for me

Hi I am looking for someone who can program Arduino Mega 2560 I am willing to pay if need be.The project will need someone who understands fastled,one wire,Dallas Tempreature and communication between multiple Arduino Megas.Never done this before and I have limited programming experience.I am not sure how much programmers charge either.I hope someone can help.

Thank you in advance.

100 US$ an hour or so?

Why don't you post a proper description of your project? We might be able to guide you through the process of writing the code.

Hi Sterretje,

Thank you for your helpful reply.The project is quite complex but I do have samples of code which could be added to.I have tried to merge code but just run into errors.i.e I have code for an animation that works fine but when I try to add dallas temperature and onewire it stops working even though I have not called them.Strange.Primarily I am looking for a running light script (which I have) but I also want to run it in the opposite direction too (which I have) Then I want to control the direction using temperature sensors.Say sensor 1 triggers at 22 degrees the leds will flow in one direction and if sensor 2 triggers it will flow in the other direction.There is more to the project but that is the main purpose.

Thank you.

A professional programmer is going to be £350 per day, plus expenses, absolute minimum! And if you are going to require them to do stuff like "communication between multiple Arduino Megas" and specify things like "There is more to the project but..." then they will want to bill you on a "time and materials" basis. In other words "hand over your cheque book and let me decide what numbers to write"!

Hi Paul,

Thank you for your advice.I appreciate it.

You are most welcome! As a fellow Britt I not only recognise sarcasm, I expect it.

The best suggestion yet was in #1. If you can describe your project in more detail, perhaps we can come up with some less scary options than multiple communicating megas.

Hi Paul,

Thank you.No sarcasm intended I assure you.I checked your profile West Yorkshire nice.I was born and bred in Huddersfield.Nice to meet you so to speak.Yes Sterretje's post was a very good suggestion and I did describe my project I think as that is the main requirement.The reason I was wanting to connect multiple Mega's is that the one wire is a bit flaky I hear after 40 or so metres with multiple detectors in line.Though I think I could get 100 mtrs by reducing the resistor to 2k or so and using cat5 cable or maybe cat7 will solve it all ?.I do know how to connect multiple Mega's but not sure how the data would flow.I have just ordered 3 more so we will see.I will be also connecting a raspberry pi too but that I can do.

Kindest Regards.

Just why do you keep referring to "Megas"? The Nano (preferable to UNO for "real world" applications) has a reasonable number of pins available and expansion to drive multiple outputs is more appropriately performed using chips such as the TPIC6B595 while whole "NeoPixel" strings are a minimal load on a single pin.

Maybe if you describe your project in more detail, your reasons for wanting to use multiple Megas will be clearer to us. You hint at large numbers of components and long distances, but at the moment it's too vague for us to form a mental picture of the whole project. Maybe you could post a diagram?

With one-wire, there may be ways to boost the signal, say half way along the wire, without using anything as large or complex as a Mega.

Did you see this?

Hi PaulB,

I want to use Mega's because I will be using A lot and I mean A lot of sensors.The Mega has much more memory than an UNO for instance (which was my first choice) and a lot more outputs.

Hi PaulRB,

Yes I did see that and thank you.I can not post a diagram as I can't draw to save my life im afraid.I don't want to discuss too much on here but if you can pm me maybe we can chat via email ?

Hello,
Thats how this forum works.

Share your project problems to us and we will try to help you solved the problems with our knowledge.

Hi Nielyay,

Thank you for your reply.Ok what I am trying to do is get a theatre chase effect like the one below.But I am trying to add a DS18B20 heat detector to trigger it at 22 degrees c.Also I need another DS18B20 to reverse the animation when triggered at 24 degrees c.So I really need a program in 2 sections i.e one detector calls the forward animation and the other calls the reverse animation.Here is the code I have so far.Forgive me if I do not format this correctly.Still learning here.

#include "FastLED.h"
#include <OneWire.h>
#include <DallasTemperature.h>
#define OneWire oneWire(ONE_WIRE_BUS);
 
#define DallasTemperature sensors(&oneWire);
#define NUM_LEDS 150 

CRGB leds[NUM_LEDS];
#define PIN 6
#define ONE_WIRE_BUS 2

 

void setup()
{
//  sensors.begin();
  
  FastLED.addLeds<WS2811, PIN, GRB>(leds, NUM_LEDS).setCorrection( TypicalLEDStrip );
}


void loop() {
  theaterChase(0x00,0xff,0x00, 50);
}

void theaterChase(byte red, byte green, byte blue, int SpeedDelay) {

  for (int j=0; j<10; j++) {  //do 10 cycles of chasing

    for (int q=0; q < 6; q++) {

      for (int i=0; i < NUM_LEDS; i=i+6) {

        setPixel(NUM_LEDS-(i+q), red, green, blue);    //turn every 9th pixel on

      }

      showStrip();

     

      delay(SpeedDelay);

     

      for (int i=0; i < NUM_LEDS; i=i+1) {   // delay ?

        setPixel(i+q, 0,0,0);        

      

    }

  }
} 


  // ---> here we call the effect function <---


}





// ---> here we define the effect function <---


// *** REPLACE TO HERE ***


void showStrip() {

 #ifdef ADAFRUIT_NEOPIXEL_H 

   // NeoPixel

   strip.show();

 #endif

 #ifndef ADAFRUIT_NEOPIXEL_H

   // FastLED

   FastLED.show();

 #endif
}

void setPixel(int Pixel, byte red, byte green, byte blue) {

 #ifdef ADAFRUIT_NEOPIXEL_H 

   // NeoPixel

   strip.setPixelColor(Pixel, strip.Color(red, green, blue));

 #endif

 #ifndef ADAFRUIT_NEOPIXEL_H 

   // FastLED

   leds[Pixel].r = red;

   leds[Pixel].g = green;

   leds[Pixel].b = blue;

 #endif
}

void setAll(byte red, byte green, byte blue) {

  for (int i=NUM_LEDS; i >= 0; i=i-3) {

    setPixel(i, red, green, blue); 

  }

  showStrip();
}

Any help is greatly appreciated.
Thank you.

Ok. That sketch is all about LEDs and nothing about sensors. Have you managed to get any sketches working with the ds18b20 yet? Better still, with two sensors? If so, post that sketch as well. If not, work towards that and post what you have if you get stuck.

Hi Paul,

As you can see in the sketch I have tried to add sensor code but had to use // in front of sensors.begin () as it caused an error.

So does that mean you have not managed to get a sketch to work (even to compile) for the ds18b20? It sounds like maybe you have not installed one of the necessary libraries: either the DallasTemperature of the OneWire libraries. Or both, of course. But you managed to install the FastLed library. The process is just the same.

When you need help with something that causes an error, you must give some detail. You know the window at the bottom of the Arduino IDE where you see the error messages when you try to verify the code? There is a link there you can click to copy the error messages in their entirety. Paste them into your forum post between code tags, just as you would with your sketch.

Hi Paul,

The libraries are loaded.The error I get is 'sensors' was not declared in this scope

Errors don't come without code.
I don't see your code

Hi AWOL,

The code is on page one of the replies.

The code in reply #12 makes no reference to sensors that I can see (I'm posting from my phone).

Why don't you post the code you are compiling, and the exact error message you are seeing?