Show Posts
Pages: 1 [2] 3
16  Using Arduino / Motors, Mechanics, and Power / Re: 360* Servo?? on: February 05, 2013, 03:27:52 pm
i would use 2 normal servo(one above the other) insted of stepped motor,beacause for the stepped motor you need EasyDriver...requiers 7-30v,it get hot,and it draw current even to remain in same position....have fun smiley-wink
17  Using Arduino / LEDs and Multiplexing / Re: Atmega LED game consoles on: February 04, 2013, 02:53:34 pm
Meggy Jr and Pong Clock( are most complex and intresting ones...but it's kind expensive
18  International / Talleres, Encuentros, ... / Re: Se busca contacto para ayuda en un proyecto en Madrid on: February 04, 2013, 01:11:25 pm
muy buenas Juanma soy Juycce,yo tampoco soy un experto pero alomejor podemos compartir ideeas.Un saludo smiley-wink
19  Community / Website and Forum / Re: Karma? on: February 04, 2013, 12:59:47 pm
upsss  smiley-confuse so i can't see it.My apologies,Thank you CrossRoads...
20  Community / Website and Forum / Re: Karma? on: February 04, 2013, 12:53:25 pm
hi everyone i have one little not big deal,but the karma is for people who have certain time in the arduino forum,i am asking it because mine it's look like blocked or inactive(the green + is missing).Any time i have the chance i try to help newbe even if im strating with smiley-grin.thank you all
21  Using Arduino / Motors, Mechanics, and Power / Re: High Voltage and High Current through Arduino UNO on: February 04, 2013, 03:52:04 am
hi Badger33,try this:

u have #1,#2,#3,#4...and this scenario
- when pot is in the middle nothing hapends and #1 is conected to #3  ...and #2 is conected to #4
- when turn the potenciometer left u have #1 conected to #4 (but #2 is still conected to #4)
- when turn the pot right u have #2 conected to #3 (but #1 is still conected to #3)

 You wil need two 5v relays for arduino(you can find them on ebay for about 4€ each),since you are working with 220 i guess
 And a 10k poteciometer

the code for Arduino is somthing like this,hope u understand how it works:

void setup()
  Serial.begin(9600);  // Start Serial comunic.
  pinMode(12,OUTPUT);  // pin 12 = output to Relay A
  pinMode(13,OUTPUT);  // pin 13 = output to Relay B
void loop() // This Funcion keeps runing when Arduino is powerd on
  int value = analogRead(A0); // store analog red into a variable
  Serial.println(value);  // Show u the potenciometer value on SerialMonitor
  if (value >= 650) // if pot value is bigger/equal to 650...
    digitalWrite(12,HIGH); //pin 12 is powerd,relay is on
    digitalWrite(12,LOW); //pin 12 got no power,and reley is swich off
  if (value <= 350)
    digitalWrite(13,HIGH); //same as pin 12,but for pin 13
  delay(100); // delay time

the potenciometer u need to conct like:
left pin     =   +
right pin   =    -
middle pin = analog0
u can change the value as you like,in case u dont have a 10k pot.
Good Luck       Juycce
22  Using Arduino / Motors, Mechanics, and Power / Re: High Voltage and High Current through Arduino UNO on: February 03, 2013, 02:47:48 pm
hi Badger33 u can achive this with 2 relays making a H-Bridge.Do you want to do it with the Arduino?like having 2 input buttons on the board? smiley-wink
23  Using Arduino / Interfacing w/ Software on the Computer / Re: Slow Compiler on Win 7 on: February 03, 2013, 02:36:44 pm
try this:
- make shore you have selected the right arduino (168/328)
- uninstall the arduino soft.and install the 1.0.3
- try to hold reset button for few second before press "upload to the board"

does TX RX leds blink fast when you upload the sketch?
24  Using Arduino / Interfacing w/ Software on the Computer / Re: Read Temperature/Humidity on: February 03, 2013, 11:15:25 am
Thank you Paul smiley-grin:D.Works great.Store the 2 values in one variable was the key,i thought i need 2 for Temp and the other one for Hum.
I apreciate your help.
25  Using Arduino / Interfacing w/ Software on the Computer / Re: Read Temperature/Humidity on: February 03, 2013, 09:53:05 am
Thank you for Answering PaulS,i have the Arduino Duemilanove and i know is not like Leonardo,so every time i open the SerialComuncicacion it reset itself.I don't raly care much if it resets,i was doing it,because i thought that this way the aplicacion would work smoothly(corect me if im rong),since my intencion is to hookup 4 DHT22 sensors and 1 LDR,maybe to much data to one serial port.
I want to make it realy simple,less code is better...

TemperatureHumidity = SReaderT1
  smiley-grin i know it sound silly,but the thing is i want to read both Temperature and Humidity

If you are just adding the serial data to the list box, why not just add the String?
  could you please give me an example how it should look like the code.Thank you again Paul,you allways answer me smiley-wink
26  Using Arduino / Interfacing w/ Software on the Computer / Read Temperature/Humidity on: February 03, 2013, 09:06:42 am
Hi there guys i am having a problem with code in Visual Studio...and i need an expert opinion

i have the arduino and DHT22 sensor,when opening the Form1 a Timer send "1" thru the serial port.When "1" is recived on arduino,it send the temperature and humidity to the VS aplicacion.The problem i have is that,since the data send by arduino is more than one character (with Serial Monitor my data looks exactly like this  "24.90 Celsius      32.0% Humidity" ) i belive the Form cannot interpretate the data and gives me this error
  {"Conversion from string "24.90 Celsius      32.0% Humidity"to type 'Integer' is not valid."}

The code of Visual Studio is:

Imports System.IO
Imports System.IO.Ports
Imports System.Threading

Public Class Form1

    Shared _continue As Boolean
    Shared _serialPort As SerialPort
    Dim SReaderT1 As String

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        SerialPort1.PortName = "com17" 'change com port to match your Arduino port
        SerialPort1.BaudRate = 9600
        SerialPort1.DataBits = 8
        SerialPort1.Parity = Parity.None
        SerialPort1.StopBits = StopBits.One
        SerialPort1.Handshake = Handshake.None
        SerialPort1.Encoding = System.Text.Encoding.Default
    End Sub

    Dim TemperatureHumidity As Integer

    Private Sub TimerTick_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TimerTick.Tick
            SReaderT1 = SerialPort1.ReadLine()

        End Try

        TemperatureHumidity = SReaderT1

        ListBoxTemperature1.Items.Add(TemperatureHumidity)                             ''Add the Temp/Hum to ListBoxTemperature1''
        ListBoxTemperature1.TopIndex = ListBoxTemperature1.Items.Count - 1        ''Count -1 i use it just to keep the data on top''

    End Sub
End Class

i am stuck in here,is there other way to read the data?thank you all of you.
27  Using Arduino / Sensors / Re: Adjustable Infrared Sensor Switch (SKU:SEN0019) on: February 02, 2013, 02:15:15 pm
did u tried this?
const int InfraredSensorPin = 4;//Connect the signal pin to the digital pin 4 >> yellow
const int LedDisp = 13;

void setup()

void loop()
  if(digitalRead(InfraredSensorPin) == LOW)  digitalWrite(LedDisp,HIGH);
  else  digitalWrite(LedDisp,LOW);
  Serial.print("Infrared Switch Status:");

    Red - V+
    Yellow - Signal
    Green - GND
    detection range is 3cm - 80cm
28  Using Arduino / Sensors / Re: read 2 DHT22 sensors on: February 02, 2013, 01:43:20 pm
could u please explain me what are (t,2) and (h,1 ) do....I mean i know the 't' is temperatue and 'h' is humidity but what about the numbers 2 and 1 ? what are they doing

void doPrintTH(float t, float h)
  Serial.print(" Celsius      ");
  Serial.print(h,1 );
  Serial.println("% Humidity");

29  Using Arduino / Sensors / Re: read 2 DHT22 sensors on: February 02, 2013, 01:13:44 pm
smiley-grin:D:D thank you so much  robtillaart works,I realy apreciate it.
30  Using Arduino / Sensors / read 2 DHT22 sensors on: February 02, 2013, 11:14:21 am
Hi there all...i am into a project wich read temperature,i have used the LM35 before but beacause of acuracy,and limited lenght of the cable,errors and such ....i decided to do it with the DHT22/RHT03.Reading the temperature with the <DHT22.h> library works great.The code i use is:

#include <DHT22.h>
// Only used for sprintf
#include <stdio.h>

// Data wire is plugged into port 7 on the Arduino
// Connect a 4.7K resistor between VCC and the data pin (strong pullup)
#define DHT22_PIN 7

// Setup a DHT22 instance
DHT22 myDHT22(DHT22_PIN);

void setup(void)
  // start serial port

void loop(void)
  DHT22_ERROR_t errorCode;
  // The sensor can only be read from every 1-2s, and requires a minimum
  // 2s warm-up after power-on.
  errorCode = myDHT22.readData();
    case DHT_ERROR_NONE:
      Serial.print(" Celsius      ");
      Serial.print( myDHT22.getHumidity());
      Serial.println("% Humidity");
      // Alternately, with integer formatting which is clumsier but more compact to store and
 // can be compared reliably for equality:
      char buf[128];


my intencion is to keep it most simple as posible.can anyone help me with the code to add another sensor,so i can read 2 DHT22?
i realy apreciate it,thank you all of you.
Pages: 1 [2] 3