Show Posts
Pages: [1] 2 3 4
1  Topics / Home Automation and Networked Objects / Re: arduino web thermostat controlled with android phone on: October 17, 2012, 09:08:43 am
error: 'DHT' does not name a type
2  Topics / Home Automation and Networked Objects / Re: arduino web thermostat controlled with android phone on: October 15, 2012, 07:42:08 pm
nice,tried but hit check and get errors
3  Using Arduino / Programming Questions / Re: temperature sensors on: October 09, 2012, 08:36:01 am
well thanks anyway but i tried codes from "Comments" section and when i check code it comes up error and not sure why,that is why i asked if anyone had sample code that works so i can learn from
4  Using Arduino / Programming Questions / Re: temperature sensors on: October 08, 2012, 07:08:44 pm
this is the sensor https://www.sparkfun.com/products/9438 and the arduino  library OneWire
5  Using Arduino / Programming Questions / temperature sensors on: October 08, 2012, 12:56:08 pm
Hi,i did not play with arduino for a while and now trying to do temperature sensor with  OneWire but every example does not work.My plan is to have 2 or 3 temperature sensor hooked up to hot tub to keep from freezing pump,check and set/turn on heat all from phone. I have got my uno and ethernet shield to work over internet but can not find OneWire code that workes so i can learn from.

does anyone have code that works?

thanks tom
6  Topics / Robotics / Re: Controlling Robot Using cellphone on: July 26, 2012, 10:57:13 am
are you using a smartphone?there are many people that have done it.Start off with a rc car then arduino with wifi shield then add ip camera this is what i did.Look at this http://ttjcrew.com/2011/07/22/open-source-robot-controls/  and just google rc robot or rc wifi car
7  Using Arduino / Networking, Protocols, and Devices / Re: Udp/EthernetUdp error on: July 11, 2012, 09:41:38 am
try this
Code:
/************************************
  Arduino Based Robot Control System v0.1
  by Eric Barch (ttjcrew.com)
************************************/
#include <SPI.h>
#include <Ethernet.h>
#include <EthernetUdp.h>
#include <Servo.h>

//Set the MAC address, static IP, gateway, and subnet of the network
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
byte ip[]  = { 192, 168, 1, 55 };

//UDP Stuff
unsigned int localPort = 55;            //Port of incoming UDP data
const int PACKET_SIZE = 4;        //Size of the joystick data packet
byte joystick_data[PACKET_SIZE];  //Byte array for incoming data - [0] = leftY, [1] = leftX, [2] = rightY, [3] = rightX

//Robot specific stuff
boolean lastState = false;           //Keeps track of when we go between enabled/disabled or vice versa   
unsigned long lastUpdate = 0;        //Keeps track of the last time (ms) we received data

//Define robot outputs
int pwm01 = 5;  //Digital Pin 5
int pwm02 = 6;  //Digital Pin 6

//Speed Controller/Servo Objects
Servo leftDrive;
Servo rightDrive;

EthernetUDP Udp;

void setup() {
  Serial.begin(9600);  //Setup serial comms for debugging
 
  // Start Ethernet and UDP
  Ethernet.begin(mac,ip);
  Udp.begin(localPort);
 
  Serial.println("Robot control system initialized.");
}


void loop() {
    xferdata();
 
    //Only allow robot to be enabled if we've received data in the last 100ms and robot is set to enabled
    if (((millis() - lastUpdate) <= 100) && (millis() > 500))  //Robot is disabled for first 500ms of runtime
      enabled();
    else
      disabled();
}


/* This function's sole purpose is to receive data and shove it into the joystick_data byte array */
void xferdata()
{
  if (Udp.available()) {
    Udp.read(joystick_data,PACKET_SIZE);
    lastUpdate = millis();
  }
}


void enabled()
{
    //If we were last disabled, we need to attach the PWM outputs
    if (lastState == false) {
      leftDrive.attach(pwm01);
      rightDrive.attach(pwm02);
    }
 
    //Output the left/right drive PWMs based on joystick input (0-180)
    leftDrive.write(map((long)joystick_data[0], 0, 255, 0, 180));
    rightDrive.write(map((long)joystick_data[2], 0, 255, 0, 180));
   
    //We are enabled
    lastState = true;
}


void disabled()
{
    //Robot is disabled, detach PWM outputs
    leftDrive.detach();
    rightDrive.detach();
   
    //We are disabled
    lastState = false;
}
8  Topics / Robotics / Re: Internet controlled RC car. Is it possible? on: July 10, 2012, 11:20:41 am
brandoncaddow-young very nice cant wait to try
9  Topics / Home Automation and Networked Objects / Re: Some ideas for a domestic antitheft system... and probably more. on: July 02, 2012, 10:51:31 pm
did anyone get domestic home to work over the internet?
10  Using Arduino / Networking, Protocols, and Devices / Re: convert rc tx/rx to wifi on: February 27, 2012, 11:17:47 am
anyone
11  Using Arduino / Networking, Protocols, and Devices / convert rc tx/rx to wifi on: February 15, 2012, 12:21:28 pm
would it be possible to replace a rc transmitter and receiver rf to wifi using something like this
http://www.elechouse.com/elechouse/index.php?main_page=product_info&cPath=90_186&products_id=1007
then they will have a ip address
12  Topics / Robotics / Re: servo code help on: February 12, 2012, 11:42:57 am
thanks i see what you mean about map() function now
13  Topics / Robotics / Re: servo code help on: February 11, 2012, 01:23:01 pm
I have 2 inputs each go 2v to 5v and 2 servos to drive left/right motors

servo set pos 90 when input 1 and input 2 are == at 2v move servo to pos 100
if input 1 and 2 are not == stay at pos 90

              volts             pos
       
                2                100
                3                120
                4                130
                5                145
if input 1 and 2 are not == stay at pos 90

i hope this explains what i am trying to do
14  Topics / Robotics / Re: servo code help on: February 11, 2012, 12:46:59 pm
yes there is one for each motor(servo)

i got it to work thanks

should i use something other then maps
15  Topics / Robotics / Re: servo code help on: February 10, 2012, 06:18:04 pm
there is one for left side and right motor
mright.write(valrpin);
  mleft.write(valgpin);
 
just don't know why i get the error
Pages: [1] 2 3 4