Jump to content

Let's make a Controller, and other fun uses for Arduino


Capt. Obvious

Recommended Posts

I just ordered a bunch of proto type board, smaller pieces PM me if you want some. We will need this(or at least make it easier) for the base to put the relays on.

I'd love some, since I am on a very tight schedule this week, I will be going pre-fab with an 8 channel relay board for the tutorial as well as throwing in a little freebie tutorial on my pico build later tonight

Link to comment
Share on other sites

  • Replies 111
  • Created
  • Last Reply

I just ordered a bunch of proto type board, smaller pieces PM me if you want some. We will need this(or at least make it easier) for the base to put the relays on.

I'd love some, since I am on a very tight schedule this week, I will be going pre-fab with an 8 channel relay board for the tutorial as well as throwing in a little freebie tutorial on my pico build later tonight

Sure thing I'll hit you up when they come in

Link to comment
Share on other sites

Thanks.

Will this work for the relay board?

http://www.amazon.com/SainSmart-8-Channel-Relay-Module-Arduino/dp/B0057OC5WK/ref=sr_1_fkmr0_1?ie=UTF8&qid=1360885631&sr=8-1-fkmr0&keywords=Opto-Isolated+8+Channel+Relay+Board

I get my Due on Monday so I'll be starting to play around with it then. Hopefully I can get some additional components ordered as well.

Link to comment
Share on other sites

  • 3 weeks later...
#include <OneWire.h>
#include <DallasTemperature.h>

#define TEMP_BUS 3 //declares pin 3 as the onewire bus

OneWire onewire(TEMP_BUS);

DallasTemperature tsensor(&onewire); //tell dallastemp what bus to use

DeviceAddress tank = {0x28, 0x70, 0x69, 0x33, 0x04, 0x00, 0x00, 0x3A}; //change this
int highTempLED = 7;
int lowTempLED = 8;
int normTempLED = 9;
void setup()
{
  pinMode(highTempLED,OUTPUT);
   pinMode(lowTempLED,OUTPUT);
    pinMode(normTempLED,OUTPUT);
 Serial.begin(9600);//start usb serial communication
tsensor.begin(); 
}

void echoTemptoSerial(DeviceAddress deviceaddress){
  float tempF = tsensor.getTempF(deviceaddress);
  if (tempF < -100.00) 
    {Serial.println("sensor disconnected, please check");}
    else {Serial.print ("F: ");
        Serial.print(tempF);}
}

void loop()
{
  Serial.print("getting temperature from probe...\n\r");
  tsensor.requestTemperatures();
  Serial.print("current tank temp is: ");
  echoTemptoSerial(tank);
  if (tsensor.getTempF(tank) < 78.00 & tsensor.getTempF(tank)>75.01) digitalWrite(normTempLED, HIGH);
  else digitalWrite(normTempLED, LOW);
  if (tsensor.getTempF(tank) > 78.00) digitalWrite(highTempLED,HIGH);
  else digitalWrite(highTempLED, LOW);
  if (tsensor.getTempF(tank) < 75.00) digitalWrite(lowTempLED,HIGH);
  else digitalWrite(lowTempLED, LOW);
  Serial.print("\n\r\n\r");
  delay(3000);
}
Link to comment
Share on other sites

Got me a Uno.. I'll be jumping on the band wagon after I get my BML LEDs. Looking to use it to dim lights and what not. Maybe I'll see about setting it up to control my chiller and calcium reactor and some monitoring.. This will be a fun project.

Link to comment
Share on other sites

I'm getting an error when I try and upload the one_wire_sketch. Here is the error.

In file included from one_wire_address_finder.pde:7:
/Users/mac_mini_office/Documents/Arduino/libraries/OneWire/OneWire.h:77: error: #error "Please define I/O register types here"
/Users/mac_mini_office/Documents/Arduino/libraries/OneWire/OneWire.h:84: error: 'IO_REG_TYPE' does not name a type
/Users/mac_mini_office/Documents/Arduino/libraries/OneWire/OneWire.h:85: error: ISO C++ forbids declaration of 'IO_REG_TYPE' with no type
/Users/mac_mini_office/Documents/Arduino/libraries/OneWire/OneWire.h:85: error: expected ';' before '*' token
Any ideas?
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...