Serial port for Kill A Watt - Tweet A Watt compatible

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
kshyamchandar
 
Posts: 10
Joined: Mon Jun 07, 2010 1:07 pm

Re: Serial port for Kill A Watt - Tweet A Watt compatible

Post by kshyamchandar »

d
Last edited by kshyamchandar on Thu Mar 31, 2011 1:57 pm, edited 1 time in total.

User avatar
opossum
 
Posts: 636
Joined: Fri Oct 26, 2007 12:42 am

Re: Serial port for Kill A Watt - Tweet A Watt compatible

Post by opossum »

ADC conversion time is 2 microseconds.

There are two samples (voltage and current) taken every 984 microseconds.

Timer2 is configured to increment every 8 microseconds, and the Timer2 preset is 123.
So, the Timer2 interrupt flag will be set every 8 * 123 = 984 microseconds.

kshyamchandar
 
Posts: 10
Joined: Mon Jun 07, 2010 1:07 pm

Re: Serial port for Kill A Watt - Tweet A Watt compatible

Post by kshyamchandar »

d
Last edited by kshyamchandar on Thu Mar 31, 2011 1:59 pm, edited 1 time in total.

kshyamchandar
 
Posts: 10
Joined: Mon Jun 07, 2010 1:07 pm

Re: Serial port for Kill A Watt - Tweet A Watt compatible

Post by kshyamchandar »

d
Last edited by kshyamchandar on Thu Mar 31, 2011 2:00 pm, edited 1 time in total.

User avatar
opossum
 
Posts: 636
Joined: Fri Oct 26, 2007 12:42 am

Re: Serial port for Kill A Watt - Tweet A Watt compatible

Post by opossum »

It is logic level serial, so a USB to logic level (3.3V or 5V) serial cable like this is required. Do not use a USB to RS-232 cable.

wukongnyc
 
Posts: 1
Joined: Mon Jul 30, 2012 9:04 am

Re: Serial port for Kill A Watt - Tweet A Watt compatible

Post by wukongnyc »

I am trying to make Xbee based Tweek A Watt and brought all the components needed. I have the same issue that Kill A Watt device that I brought recently (2012) has different board than the original instruction, it seems event different than the one in this thread, but it seems that originator of this thread suggest using optisolator that will make the solution independent of varieties of board. I am new to electronic components/circuits. My questions are:

1) what is optisolator? what are the key functions of it?
2) where I can get one to build the solution as suggested here? are there different types of optisolator?

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Serial port for Kill A Watt - Tweet A Watt compatible

Post by adafruit_support_rick »

An optoisolator essentially uses LEDs to transmit signals from one electrical circuit to another, such that the two electrical circuits are isolated from each other.

The OP was using this optoisolator device:
http://www.fairchildsemi.com/ds/6N/6N138.pdf

satu1991
 
Posts: 1
Joined: Tue Oct 16, 2012 2:55 pm

Re: Serial port for Kill A Watt - Tweet A Watt compatible

Post by satu1991 »

For the serial cable, do we have to connect Tx to serial data & Gnd to Ground.

Locked
Please be positive and constructive with your questions and comments.

Return to “Microcontrollers”