Jump to content

Teensy++ 2.0 Sd Problem


cottontail
 Share

Recommended Posts

This is not directly related to the Rubber Ducky, but I figured with everyone's Teensy development skills someone might know the answer. I have a Teensy++ 2.0 and a MicroSD card slot purchased from PJRC, but I cannot seem to get the Teensy to see the SD card slot. The test code I am using is as follows...

#include <SD.h>

void setup() {

//Pause for 1 second

delay(1000);

//Needs to be set for the SD library to function

pinMode(10, OUTPUT);

//Check to make sure SD card is functioning, if not set red LED

if (!SD.begin(20)) {

analogWrite(16, 1023);

}

}

void loop() {

}

I have tried multiple variations, but all I get is the red LED (pin 16). Pins 20, 21, 22 and 23 are hooked to SS, SCLK, MOSI and MISO in that order and GND and 5v are also attached to the SD card reader. When testing voltages for the pins at the SD card reader and the Teensy I get...

SS - 5

SCLK - .02

MOSI - 5

MISO - 3.3

5v - 5

Any thoughts would be greatly appreciated... thanks!

Link to comment
Share on other sites

Monitoring the 4 pins on the Teensy through analogRead, here is what I get...

SS - 1020

SCLK - 1007

MOSI - 1020

MISO - 1023

SS - 1020

SCLK - 1012

MOSI - 1016

MISO - 1021

SS - 1021

SCLK - 1016

MOSI - 1016

MISO - 1019

SS - 1021

SCLK - 1018

MOSI - 1015

MISO - 1014

SS - 1023

SCLK - 1020

MOSI - 1016

MISO - 1013

SS - 1022

SCLK - 1021

MOSI - 1018

MISO - 1015

SS - 1020

SCLK - 1021

MOSI - 1020

MISO - 1018

SS - 1019

SCLK - 1020

MOSI - 1020

MISO - 1020

SS - 1018

SCLK - 1019

MOSI - 1021

MISO - 1

SS - 1018

SCLK - 1017

MOSI - 1020

MISO - 1

SS - 1018

SCLK - 1017

MOSI - 1019

MISO - 0

SS - 1020

SCLK - 1018

MOSI - 1018

MISO - 1022

SS - 1021

SCLK - 1019

MOSI - 1018

MISO - 1020

SS - 1022

SCLK - 1020

MOSI - 1017

MISO - 1015

SS - 0

SCLK - 1023

MOSI - 1019

MISO - 1015

SS - 1023

SCLK - 1023

MOSI - 1020

MISO - 1016

SS - 1022

SCLK - 1023

MOSI - 1022

MISO - 1019

SS - 1021

SCLK - 1022

MOSI - 1022

MISO - 1021

SS - 1020

SCLK - 1021

MOSI - 1023

MISO - 1

SS - 1018

SCLK - 1019

MOSI - 1022

MISO - 2

SS - 1019

SCLK - 1018

MOSI - 1020

MISO - 0

SS - 1021

SCLK - 1019

MOSI - 1019

MISO - 1022

SS - 1022

SCLK - 1020

MOSI - 1019

MISO - 1020

SS - 1022

SCLK - 1021

MOSI - 1018

MISO - 1016

SS - 0

SCLK - 0

MOSI - 1021

MISO - 1016

SS - 1023

SCLK - 0

MOSI - 1022

MISO - 1017

SS - 1023

SCLK - 1023

MOSI - 1022

MISO - 1018

SS - 1022

SCLK - 1022

MOSI - 1023

MISO - 1021

SS - 1021

SCLK - 1022

MOSI - 1023

MISO - 0

SS - 1020

SCLK - 1020

MOSI - 1023

MISO - 2

SS - 1019

SCLK - 1019

MOSI - 1022

MISO - 2

SS - 1020

SCLK - 1019

MOSI - 1021

MISO - 0

SS - 1021

SCLK - 1020

MOSI - 1020

MISO - 1021

SS - 1022

SCLK - 1021

MOSI - 1020

MISO - 1019

SS - 1023

SCLK - 1022

MOSI - 1019

MISO - 1016

SS - 1

SCLK - 0

MOSI - 1022

MISO - 1017

SS - 1023

SCLK - 1023

MOSI - 1022

MISO - 1018

SS - 1022

SCLK - 1023

MOSI - 1023

MISO - 1020

SS - 1021

SCLK - 1022

MOSI - 1023

MISO - 1022

SS - 1020

SCLK - 1021

MOSI - 0

MISO - 1

SS - 1019

SCLK - 1019

MOSI - 1022

MISO - 2

SS - 1020

SCLK - 1019

MOSI - 1021

MISO - 0

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...