Power mystery

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
khorner116
 
Posts: 68
Joined: Wed Mar 04, 2015 7:08 pm

Power mystery

Post by khorner116 »

I just rigged up a test circuit to begin the process of making my Itsy talk to another Arduino as a slave processor. The code (below) is simple at this stage... just send a message.. receive it... and print on the console. It's working just fine. Although I have issues with the IDE. But my question is related to the picture I uploaded. Why is the Itsy powered at all when the only connections to it are a GND line and the Tx/Rx wires to 0 & 1. As you can see in the pix, the red led is on and blinking as the sketch tells it to. And no USB or batt or 5v power is being supplied. So where's the power coming from? I can't believe it's pulling juice from the Rx line sufficient to power itself. And if it is I don't want it to. Comm lines should not be supplying power.

Let me know when you get a minute. Thanks.
Itsy pix.jpg
Itsy pix.jpg (614.61 KiB) Viewed 252 times
====Itsy Code=========
#include <Arduino.h>
#include <stdlib.h>
#include <math.h> // AVG math library for calculations

void setup() {

Serial1.begin(19200);
pinMode(13, OUTPUT);
}

void loop() {

Serial1.println("Hello, this is Itsy");

digitalWrite(13, HIGH); // turn the LED on
delay(250); // wait for a bit
digitalWrite(13, LOW); // turn the LED off
delay(1750);

}

======Arduino Code===============
#include <Arduino.h>
#include <SoftwareSerial.h>

SoftwareSerial ItsyLink(9, 8) ;

void setup() {
Serial.begin(115200);
ItsyLink.begin(19200);
Serial.println("Ard Side Starting");
delay(2000);
}

void loop() {
if(ItsyLink.available()){
char c = ItsyLink.read();
Serial.print(c);
}
}

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: Power mystery

Post by adafruit_support_mike »

The ItsyBitsy is getting power from its RX pin.

That's kind of a party trick with microcontrollers:

https://www.youtube.com/watch?v=2yFh7Vv ... el=EEVblog

The pins have voltage protection circuits that route voltages higher than the VCC pin to the positive internal supply rail, and voltages lower than the GND pin to the internal negative supply rail. If nothing is connected to VCC but a GPIO pin is connected to some positive voltage, a small amount of current will flow through the protection circuit to the internal supply rails. It only takes a few microamps to make a chip run, so the leakage will power the chip.

User avatar
khorner116
 
Posts: 68
Joined: Wed Mar 04, 2015 7:08 pm

Re: Power mystery

Post by khorner116 »

Very interesting indeed. Never would have occurred to me. But thanks for the answer, I can now design around it. I thought for a minute I had a bad test board.

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

Return to “Itsy Bitsy Boards”