d13 led is not pin 17! i am confused :^)

The USBDroid provides USB Host functionality for use as an Android peripheral as an Open Android Development Kit board. [Product page]
Post Reply
haveachillday
Posts: 6
Joined: Thu Sep 03, 2015 4:51 am

d13 led is not pin 17! i am confused :^)

Post by haveachillday » Tue Sep 15, 2015 10:06 am

according to the usb droid schematic, pin 17 on the micro controller is the on board led and also digital plug 13. this is confusing me because i tested the blink sketch with pin 17 and it would not flash. however, testing:

dIgitalWrite(13,HIGH); // this lights up the led! strange no?

on top of all that, my custom code here will output to serial console in the IDE (line 39) but wont output to the led on pin 13!

i am very confused by this on board led: how it works with the blink code but not with my code. if there are any wizards out there who can weigh in i seem to have hit a rut in my education. :^(

*EDIT* i think its possible that d13 led is prioritised for SD card clock (SCK) which i am attempting to use in my code. you can see this by looking at the sd card slot on the droid schematic.

Code: Select all

#include <pcmConfig.h>
#include <pcmRF.h>
#include <TMRpcm.h>
#include <SD.h>
#include <SPI.h>            //due to a problem with the SD library, research suggest this must be included to access that library.
#define SD_ChipSelectPin 2  //we use this as a sensor to detect if sd card is present.
TMRpcm tmrpcm;              //creates an object pointing at the TMRpcm library for use in this sketch.
bool loopnumber = false;
float final = 0.0;
float initial = 0.0;
float vchange = 0.0;

void setup(){
  Serial.begin(9600); // allows communication with the computer at 9600 bits/S.
  if (!SD.begin(SD_ChipSelectPin)) {
    Serial.println("Can't detect sd card.");  //check the sd card is working.
  }
  else {
    Serial.println("Ready for action!");
  }
  tmrpcm.speakerPin = 28;
  pinMode(13,OUTPUT);    // led d13.
  pinMode(24,INPUT);     //pin A1.
  pinMode(25,INPUT);     //pin A2.
  pinMode(26,INPUT);     //pin A3.
  pinMode(27,INPUT);     //pin A4.
  pinMode(28,OUTPUT);    //pin A5 is the analogue audio output. analogue pins work as digital outputs.
}

void loop() {
  float pinA4 = analogRead(27) * (5.0 / 1023.0);
  if (!loopnumber) {
    initial = pinA4;
    loopnumber = true;  
  }
    final = pinA4;
    vchange = final - initial;
    if (vchange >= 0.3) {
      Serial.println("Button pressed. ");						//LINE 39
      tmrpcm.play("sound1.wav");   
      digitalWrite(13,HIGH);								//NOT LIGHTING UP!
      //delay(5000); //5 second/s before any other high level code is processed.  
    }
  //Serial.println("loopnumber: " + (String)loopnumber + " \ pinA4 = " + (String)pinA4 + " \ vchange = " + (String)vchange);
  initial = final;
}

andrew
Freetronics Staff
Freetronics Staff
Posts: 978
Joined: Sun Jul 14, 2013 7:06 am
Location: Melbourne, Australia
Contact:

Re: d13 led is not pin 17! i am confused :^)

Post by andrew » Tue Sep 15, 2015 10:53 pm

When you consider the schematic, pin 17 is the physical pin number of the microcontroller itself ... which then goes to the Arduino Uno position D13.

haveachillday
Posts: 6
Joined: Thu Sep 03, 2015 4:51 am

Re: d13 led is not pin 17! i am confused :^)

Post by haveachillday » Tue Sep 15, 2015 11:02 pm

hi john i was under the impression that to program pins on the Arduino IDE, I would have to use the microcontroller pins and not there plug names. am I mistaken? how then would we differentiate between d5 and a5?

andrew
Freetronics Staff
Freetronics Staff
Posts: 978
Joined: Sun Jul 14, 2013 7:06 am
Location: Melbourne, Australia
Contact:

Re: d13 led is not pin 17! i am confused :^)

Post by andrew » Tue Sep 15, 2015 11:12 pm

When using the Arduino IDE software you use the Arduino's abstract pin numbers.
D5 and A5 are differentiated by the D and A.

Easy reference below ... analogue pins are A0~A5 on the left, digital are D0~D13 on the right. USBDroid also has A6 and A7 between the microcontroller and the uSD card socket.

Image

haveachillday
Posts: 6
Joined: Thu Sep 03, 2015 4:51 am

Re: d13 led is not pin 17! i am confused :^)

Post by haveachillday » Tue Sep 15, 2015 11:18 pm

yeah that infographic clears everything up! thank you sir madam :D

cadmodeling777
Posts: 10
Joined: Fri Apr 21, 2017 8:42 am
Location: MONA TILES COMPOUND, NR. CHHANI CIRCLE, CHHANI ROAD, VADODARA - 390002. GUJARAT, INDIA.
Contact:

Re: d13 led is not pin 17! i am confused :^)

Post by cadmodeling777 » Fri Apr 21, 2017 8:51 am

thanks for this information.

clibin009
Posts: 150
Joined: Mon Oct 23, 2017 2:57 am

Re: d13 led is not pin 17! i am confused :^)

Post by clibin009 » Mon Oct 23, 2017 3:48 am

clb1023
cheap jordan shoes
cheap oakley sunglasses
cheap ray ban sunglasses
ugg boots
uggs outlet
coach outlet store
supreme shirts
adidas shoes
canada goose outlet
coach outlet online
cheap jordan shoes
red bottom
coach outlet online
polo ralph lauren
oakley sunglasses outlet
pandora jewelry
pandora jewelry
coach outlet online
mulberry
michael kors outlet canada
coach outlet store
canada goose coats
nike sneakers
oakley sunglasses outlet
michael kors bags
adidas sneakers
pandora charms
cheap jordan shoes
michael kors outlet online
canada goose jacket
cheap jordan shoes
polo ralph lauren outlet online
michael kors handbags outlet
harden shoes
fred perry polo shirts
ray ban sunglasses sale
ugg boots sale
moncler outlet online
coach outlet online
ugg shoes
valentino
pandora charms sale clearance
uggs outlet
moncler outlet online
louis vuitton outlet online
michael kors
air max shoes
christian louboutin shoes
coach outlet store online
ugg boots women
ray ban sunglasses outlet
ugg
ugg boots
nike outlet
cheap ray ban sunglasses
ugg outlet
canada goose sale
ray ban sunglasses outlet
michael kors outlet online
jordan shoes
hermes bags
canada goose jackets
burberry outlet online
coach outlet online
longchamp bags
mlb jerseys
coach outlet online
coach outlet
michael kors outlet online
supreme uk
pandora charms
the north face outlet
cheap air jordans
canada goose jackets
canada goose coats
timberland outlet store
ralph lauren outlet online
ugg boots
yeezy boost 350
pandora outlet
michael kors outlet canada
north face outlet
mlb jerseys
air max
uggs
ralph lauren outlet online
michael kors
jerseys cheap
cheap jordans
canada goose outlet
coach outlet online
supreme clothing
michael kors
michael kors outlet store
coach outlet online
salvatore ferragamo outlet
michael kors outlet clearance
burberry handbags
air jordans
coach factory outlet online
retro 11
ugg outlet online
pandora charms sale clearance
louis vuitton outlet store
longchamps
louis vuitton outlet online
nfl jerseys
ugg outlet online
canada goose outlet
cheap nfl jerseys wholesale
polo ralph lauren
canada goose jackets
tory burch shoes
toms
uggs outlet
ugg boots on sale
christian louboutin shoes
michael kors outlet online
ralph lauren outlet
cheap uggs
uggs outlet
adidas outlet online
cheap ugg boots
ray ban sunglasses discount
moncler jacket
nike outlet online
michael kors outlet online
coach factory outlet online
ray ban sunglasses outlet
christian louboutin sale
uggs outlet
birkenstock shoes
hermes bags
michael kors outlet store
nike shoes
pandora jewelry outlet
canada goose outlet
uggs
uggs outlet
louis vuitton outlet
uggs clearance
louboutin outlet
moncler uk
cheap ugg boots
ugg boots outlet
ugg outlet
coach factory outlet
adidas superstar shoes
coach outlet online
adidas nmd runner
pandora jewelry outlet
adidas outlet store
canada goose coats
adidas nmd r1
ralph lauren outlet online
discount oakley sunglasses
ugg outlet
toms
coach purses
birkin handbags
ralph lauren outlet online
kate spade outlet
michael kors outlet online
pandora charms
yeezy shoes
coach factory outlet online
michael kors outlet store
canada goose uk
michael kors outlet clearance
burberry outlet online
canada goose jackets
uggs outlet
air jordan shoes
burberry outlet online
ray ban sunglasses cheap
ugg boots
hermes handbags
nike outlet store
uggs outlet
moncler coats
ugg boots
red bottom heels
coach outlet online
cheap ugg boots
moncler jackets
cheap ugg boots
bottes ugg
uggs outlet
polo ralph lauren outlet
ugg outlet store
coach outlet online
ralph lauren sale
toms shoes
ralph lauren
fred perry shirts
pandora charms sale
canada goose outlet online
moncler
adidas superstars
pandora uk
ugg boots outlet
cheap ugg boots
coach outlet online
coach factorty outlet online
louis vuitton factory outlet
canada goose parka
nike cortez classic
uggs outlet
moncler coats
burberry outlet online
cheap oakley sunglasses
ugg boots
polo ralph lauren outlet online
longchamp bags
coach outlet online
kate spade outlet online
coach factorty outlet online
coach factory outlet online
adidas yeezy boost
toms
nike outlet store online
coach factory outlet online
birkenstock outlet
coach outlet store
ugg boots outlet
coach outlet store online
michael kors outlet online
coach factory outlet
ralph lauren outlet
mbt
ugg boots
nike shoes
coach outlet online
ugg boots
north face outlet
polo ralph lauren outlet
canada goose outlet
canada goose
coach factory outlet online
kate spade outlet online
longchamp outlet
kate spade outlet online
polo ralph lauren outlet online
pandora charms outlet
adidas outlet online
coach factory outlet online
hermens
kate spade handbags
pandora charms outlet
columbia sportswear outlet
nike huarache shoes
uggs outlet
polo ralph lauren outlet
moncler sale
mulberry handbags
moncler
adidas nmd r1
canada goose coats
moncler jackets
moncler sale
air max
coach outlet store online clearance
burberry handbags
michael kors outlet store
caterpillar boots
yeezy boost 350
moncler sale
michael kors outlet clearance
uggs outlet
ralph lauren sale clearance uk
ugg sale
moncler coats
coach outlet canada
michael kors uk
coach outlet online
ugg boots clearance
ugg outlet
pandora jewelry store
cheap air jordans
coach outlet online
canada goose jacket
nmd adidas
coach factory outlet online
adidas outlet store
canada goose coats
ray bans
air jordans
coach factory outlet online
cheap nike shoes
ugg sale
pandora charms sale clearance
moncler coats
louis vuitton factory outlet
polo ralph lauren outlet
ralph lauren sale clearance uk
burberry outlet
michael kors outlet store
adidas ultra boost
michael kors outlet online
toms
ugg slippers
adidas nmd r1
coach outlet online
louboutin outlet
louboutin shoes
canada goose jackets
coach factory outlet online
louis vuitton factory outlet
canada goose outlet
michael kors bags
north face jackets
cheap ray bans
ugg australia
cheap nfl jerseys
uggs clearance
jordans
cheap uggs
adidas yeezy boost
cheap ray ban sunglasses
coach factory outlet
ugg boots
canada goose sale
coach factory outlet
polo outlet online
adidas store
canada goose sale
canada goose outlet
ray ban glasses
yeezy shoes
birkenstock
air jordan retro
cheap uggs
timberland outlet
mlb jerseys whgolesale
adidas nmd runner
coach outlet online
coach outlet canada
canada goose jackets
ugg boots clearance
ugg outlet online
michael kors outlet clearance
canada goose jackets
discount ray ban sunglasses
pandora charms outlet
canada goose sale
uggs outlet
coach outlet online
polo ralph lauren outlet
birkenstock uk
ray ban sunglasses discount
longchamp sale
ugg boots
michael kors outlet store
canada goose jackets
canada goose clothing
cheap jordan shoes
canada goose jackets
yeezy boost
michael kors outlet clearance
uggs
canada goose sale
christian louboutin sale
ugg boots outlet
red bottoms
ugg boots outlet
uggs on sale
canada goose jackets
adidas yeezy boost 350
ralph lauren uk
uggs outlet
cheap ugg sale
moncler jackets
coach factory outlet
christian louboutin shoes
yeezy boost 350
ferragamo shoes
uggs outlet
canada goose uk
gucci outlet online
ugg outlet store
cheap ugg boots
fitflops sale clearance
nike outlet online
nike outlet store
canada goose sale
uggs outlet
cheap air jordans
canada goose jackets
moncler outlet online
mulberry outlet uk
north face jackets
louis vuitton outlet store
ugg boots
coach factory outlet online
valentino outlet
ralph lauren sale
louis vuitton outlet online
yeezy shoes
ferragamo outlet
canada goose
pandora
canada goose coats
hermes outlet
coach factory outlet online
the north face outlet
polo ralph lauren outlet online
uggs outlet
coach outlet online
kate spade handbags
ugg outlet
ray ban glasses
michael kors outlet clearance
ralph lauren sale
hermes bag
longchamp outlet store
harden vol 1
pandora charms
polo ralph lauren outlet
burberry outlet online
michael kors outlet online
ugg boots
ugg canada
ralph lauren outlet
burberry handbags
tory burch outlet online
polo ralph lauren outlet
michael kors
canada goose jackets
fitflop sandals
coach outlet store
polo ralph lauren outlet
salvatore ferragamo shoes
ray bans
adidas yeezy shoes
coach outlet online
gucci outlet
coach handbags outlet
christian louboutin shoes
pandora charms outlet
ralph lauren
nike air max 2018
mbt
coach outlet online
kate spade handbags
cheap oakley sunglasses
louis vuitton handbags
christian louboutin shoes
michael kors outlet store
moncler pas cher
moncler outlet online
ray bans
kate spade outlet
cheap jordans for sale
nike sneakers
tory burch outlet online
toms outlet
ugg on sale
coach outlet online
ugg outlet
mulberry uk
cheap jordans free shipping
coach outlet store online
clb1023

clibin009
Posts: 150
Joined: Mon Oct 23, 2017 2:57 am

Wisdom at Home

Post by clibin009 » Tue Nov 28, 2017 8:29 am

ralph lauren outlet
discount nike
fitflops
kate spade outlet
michael jordan shoes
moncler jacka
moncler jackets
ugg factory outlet
snapbacks hats wholesale
nike roshe run
nike shoes
michael kors outlet clearance
burberry outlet
canada goose
air max
michael kors outlet
jordans
the north face
canada goose outlet
pandora jewelry
ugg outlet
nike store uk
ugg boots on sale
north face outlet
coach outlet
longchamp outlet
coach outlet online
michael kors
coach outlet store online
the north face
michael kors outlet online
nike outlet
pandora charms
ray ban outlet
coach outlet
uggs outlet
ray bans
flip flops
cheap nfl jerseys
uggs outlet store
oakley vault
ugg outlet
replica watches
ugg outlet
oakley sunglasses
ugg australia
ugg boots clearance
pandora charms
coach outlet
coach outlet online
north face
louboutin
hockey jerseys
jordan shoes
prada outlet
adidas football boots
christian louboutin
kate spade outlet
ugg
ugg australia
north face
ray ban sunglasses
nfl jerseys
ugg outlet
nike air max
coach outlet
ugg outlet
north face outlet
ugg boots
moncler outlet
adidas yeezy
ugg boots
canada goose
ugg boots
basketball shoes
michael kors
nike air max
longchamp
blackhawks jersey
uggs outlet
supra shoes
supreme
true religion
uggs outlet
uggs outlet
timberland
canada goose
kate spade handbags
moncler jassen
red bottom shoes
cheap nhl jerseys
nike air jordan
oakley sunglasses
ray ban sunglasses
nike factory outlet
true religion outlet
michael kors outlet
canada goose outlet
baseball jerseys
doudoune moncler
coach factory outlet
north face jackets clearance
kate spade outlet
polo ralph lauren
moncler
ugg outlet
tory burch outlet
coach outlet
ugg boots
the north face
polo ralph lauren
adidas
ralph lauren outlet
ugg outlet
coach outlet online
ray ban sunglasses
michael kors
longchamp
ugg outlet
coach wallets
ralph lauren outlet
ralph lauren outlet
canada goose jassen
adidas shoes
ugg outlet store
prada
coach outlet
ugg boots
ralph lauren outlet
longchamp
hermes outlet
pandora rings
canada goose outlet
pandora charms
ugg on sale
nike blazer
ray bans
burberry outlet
ugg outlet
coach outlet
prada
nike trainers
jordan shoes
adidas outlet
converse outlet
rolex watches
nike air max
polo ralph lauren
juicy couture outlet
michaelkors outlet
michael kors handbags
michael kors handbags
under armour outlet
uggs outlet
ugg australia
canada goose outlet
ugg boots
adidas jeremy scott
vibram fivefingers
mlb jerseys
polo ralph
cheap ugg
north face
coach factory outlet
louboutin
ferragamo
ugg boots
jordan retro
uggs outlet
nike nfl jerseys
wholesale nfl jerseys
moncler
coach outlet
adidas stan smith
ugg boots
polo ralph
coach bags
ugg italia
air jordan
louboutin
polo ralph lauren
moncler sito ufficiale
mlb jerseys
cheap nfl jerseys
air jordans
mulberry
true religion jeans
supreme new york
true religion sale
kors outlet
birkenstock uk
kate spade outlet
canada goose
ugg boots on sale
canada goose uk
kors outlet
polo ralph lauren
hermes birkin handbags
pandora jewelry
giuseppe zanotti
canada goose uk
calvin klein outlet
moncler
coach factory outlet
canada goose
hollister clothing
pandora jewelry
ugg
fitflops
burberry outlet
ugg boots
fitflops
ray ban sunglasses
coach factory outlet
salvatore ferragamo
uggs
north face jackets
ugg outlet
hogan
ugg outlet
louboutin
ugg boots
goedkope uggs
birkenstock sandals
oakley vault
cheap jordans
longchamp outlet
nike air max
canada goose jackets
michael kors outlet
ugg boots
adidas originals
ugg outlet
ugg boots
ugg australia
christian louboutin
moncler
jordans
oakley sunglasses
ray ban sunglasses
michael kors handbags
coach outlet online
ray ban
oakley sunglasses cheap
nfl jerseys
polo ralph
louboutin
jordan shoes
coach outlet
north face jackets
soccer jerseys
moncler jackets
swarovski jewelry
hollister outlet
pandora charms
beats headphones
manolo blahnik shoes
north face
coach outlet
ray ban sunglasses
air max
ugg boots clearance
michael kors outlet
uggs
air max 90
prada outlet
nike air force 1
birkenstock outlet
supreme clothing
nike football boots
ugg boots
nfl jerseys wholesale
bottes ugg
north face
ugg
oakley sunglasses cheap
pandora jewelry
jordan shoes
michael kors handbags
new balance shoes
cheap ugg boots
moncler
ugg boots
canada goose outlet
nike outlet store
nike huarache shoes
burberry scarf
ralph lauren outlet
mlb jerseys
moncler
coach outlet online
nike air huarache
ralph lauren uk
paul pogba jersey
michael kors handbags
nba jerseys
uggs on sale
coach outlet
canada goose outlet
north face outlet
polo ralph
ugg outlet
ugg outlet
moncler
hermes
burberry scarf
mont blanc pens
supreme
ugg sale
canada goose
ugg boots
ugg outlet
canada goose
north face uk
ugg outlet
nike air max
ferragamo
christian louboutin
michael kors uk
oakley sunglasses
adidas stan smith shoes
ugg outlet
north face
hermes belt
ugg boots
christian louboutin
cheap ugg boots
adidas wings
michael kors outlet
kate spade outlet
ray ban sunglasses
coach outlet
ugg boots
pandora jewelry
air jordan pas cher
coach outlet online
christian louboutin
sac longchamp
coach outlet
canada goose
ugg clearance
christian louboutin
cheap nfl jerseys
uggs outlet
north face outlet
michael kors outlet
jordans
adidas shoes
the north face
canada goose outlet
coach factory outlet
ugg boots
nike outlet
polo ralph lauren
uggs outlet
canada goose outlet
tommy hilfiger canada
polo ralph lauren
flip or flop
true religion outlet
nike running shoes
mbt
true religion jeans
jordans
mbt
ugg boots
mont blanc
ralph lauren
ralph lauren outlet
ugg australia
canada goose outlet
oakley sunglasses cheap
ralph lauren
cheap nfl jerseys
coach factory outlet
tory burch outlet
ugg boots
adidas store
canada goose
ugg boots
flip flops
north face
mont blanc pens
oakley sunglasses canada
nike air max
ray ban sunglasses
ugg outlet
ugg boots
uggs outlet
tory burch outlet
chenyingying20171128

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest