Show Posts
Pages: [1]
1  Using Arduino / Sensors / Re: current sensor on: October 06, 2012, 08:47:02 pm
sorry forgot to change that to A0 before posting... the code I used was with A0 which is the pin I'm using...
2  Using Arduino / Sensors / Re: current sensor on: October 06, 2012, 05:59:15 pm
@retrolefty: thats what I thought but I tried the code from the guys at at it didn't work either...

here's the code I got (
#include "EmonLib.h"                   // Include Emon Library
EnergyMonitor emon1;                   // Create an instance

void setup()

  emon1.current(1, 111.1);             // Current: input pin, calibration.

void loop()
  double Irms = emon1.calcIrms(1480);  // Calculate Irms only
  Serial.print(Irms*230.0);        // Apparent power
  Serial.print(" ");
  Serial.println(Irms);        // Irms
3  Using Arduino / Sensors / Re: current sensor on: October 06, 2012, 05:40:17 pm
@AWOL: just to get a more friendly output on the serial monitor

@johnwasser: I get 0. I suppose then the problem is not the circuit with the arduino but the sensor it self... here is a pic of what I'm using
4  Using Arduino / Sensors / current sensor on: October 06, 2012, 04:00:42 pm
Hello everyone,
I'm working on a home automation project of my own and one of the things I'd like to do is to be able to determine if things (like lights or my TV) are on or off without having to hack anything. I was recommended to use a non-invasive current sensor so I built one my self using this instructable:
and made an extension cable with every cable separated so I was able to place the sensor around just one of the cables as you would do with a current clamp (which I have tried and it worked)

and wired it to my arduino using this diagram
Burden = 27 ohm, C1 = 10uf capacitor, Rvd = 1k ohm

my code is just a regular analog read and output to serial
void setup() {

void loop() {
  int sensorValue = analogRead(A0);

but all I'm getting is 511 or 512 values both when the TV is on and off...
any ideas?

I've already tried many different resistance values, different capacitors but no results...
5  Using Arduino / Project Guidance / Re: Check if TV is on or off on: September 25, 2012, 10:40:54 pm
thanks everyone! I think the current sensor is the way to go as I don't have video out, if connect anything to audio out it silences audio on the TV and the USB port is in use so it's not an option.

I'm going to try something like this:
6  Using Arduino / Project Guidance / Check if TV is on or off on: September 24, 2012, 11:36:02 pm
Hi everyone!
I'm looking for ideas on how to check if my TV is on or off using my arduino
I've searched around but haven't found anything

I'm working on a project of home automation and i'd like to be able to know if the tv is on or off

It's a 40" sony bravia
7  Forum 2005-2010 (read only) / Interfacing / Re: Gyro and Accelerometer on: December 11, 2010, 10:53:51 am
A clear photo of your actual setup would be useful

sorry I don't have a camera right now and my iPhone's camera won't focus near enough to be able to distinguish everything fine... but I ca assure you I have checked thousands of times every connection and still the same... what are the chances of having bought NEW hardware ad getting both broken? If I can't get them to work before monday I'll have to call the store to get new ones instead...
8  Forum 2005-2010 (read only) / Interfacing / Gyro and Accelerometer on: December 11, 2010, 10:29:08 am
Hi everyone!
I was hoping someone would help me here before I go to the store to get new ones.

The thing is, I bought an ADXRS610 gyro and an ADXL335 Accelerometer and plugged them into my arduino uno using the following schematics:

and I uploaded the following code to the arduino:
int analogPin = 0;

void setup()

void loop()
  Serial.println(analogRead(analogPin, DEC);

but I get random numbers as if disconnected from analog, actually if I disconnect analog 0 I keep getting the same kind of random numbers...
9  Forum 2005-2010 (read only) / Interfacing / Re: Button equivalent on: December 06, 2010, 11:28:20 pm
Ok... thanks everyone for their advice but I managed to do it with some transistors and can now control the RC car using a wiimote connected to my macbook wich sends data over serial to my arduino to control de RC
10  Forum 2005-2010 (read only) / Interfacing / Re: Button equivalent on: December 06, 2010, 05:09:59 pm
I already tried relays but are no good cause using a relay would mean having something connected at all times (forward, back, left or right) unless I used 4 relays, one for each, leaving  the other state of the relay leading nowhere...

anyways, I think I found what I was looking for, an opto-isolator. I'm gonna get a few tomorrow and try those. those should work right?
11  Forum 2005-2010 (read only) / Interfacing / Button equivalent on: December 06, 2010, 02:58:20 pm
I'm just starting to play with arduino and I'm trying to hack an RC car. I already figured out how the rc works (I want to use to the arduino to control the rc, not the car itself). Basically I just have to make two wires touch to give a command (left, right, forward or back), if I use a button to connect the wires it works perfectly but I want to control it from my pc sending commands via serial so I need an electronic (or digital? Whatever) button's equivalent which I can "push" (like a button) from the code in running in my arduino.

Could someone please tell me what to use? I know it's probably an easy answer Buy I haven't been able to figure it out.

Thanks in advance to everyone!
Pages: [1]