Serial port for Kill A Watt - Tweet A Watt compatible
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 10
- Joined: Mon Jun 07, 2010 1:07 pm
Re: Serial port for Kill A Watt - Tweet A Watt compatible
d
Last edited by kshyamchandar on Thu Mar 31, 2011 1:57 pm, edited 1 time in total.
- opossum
- Posts: 636
- Joined: Fri Oct 26, 2007 12:42 am
Re: Serial port for Kill A Watt - Tweet A Watt compatible
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.
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.
-
- Posts: 10
- Joined: Mon Jun 07, 2010 1:07 pm
Re: Serial port for Kill A Watt - Tweet A Watt compatible
d
Last edited by kshyamchandar on Thu Mar 31, 2011 1:59 pm, edited 1 time in total.
-
- Posts: 10
- Joined: Mon Jun 07, 2010 1:07 pm
Re: Serial port for Kill A Watt - Tweet A Watt compatible
d
Last edited by kshyamchandar on Thu Mar 31, 2011 2:00 pm, edited 1 time in total.
- opossum
- Posts: 636
- Joined: Fri Oct 26, 2007 12:42 am
Re: Serial port for Kill A Watt - Tweet A Watt compatible
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.
-
- Posts: 1
- Joined: Mon Jul 30, 2012 9:04 am
Re: Serial port for Kill A Watt - Tweet A Watt compatible
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?
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?
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Serial port for Kill A Watt - Tweet A Watt compatible
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
The OP was using this optoisolator device:
http://www.fairchildsemi.com/ds/6N/6N138.pdf
-
- Posts: 1
- Joined: Tue Oct 16, 2012 2:55 pm
Re: Serial port for Kill A Watt - Tweet A Watt compatible
For the serial cable, do we have to connect Tx to serial data & Gnd to Ground.
Please be positive and constructive with your questions and comments.