SD Card With Toggle Switch & LED

This code uses a rocker toggle on/off switch to control an LED, and separately writes some data to a microSD Card.

Sep 2, 2022

1093 views

0 respects

Components and supplies

1

SmartQ C307 USB 3.0 Portable Card Reader for SD, SDHC, SDXC, MicroSD, MicroSDHC, MicroSDXC, with Advanced All-in-One Design

1

Resistor 1k ohm

1

Arduino USB Cable

1

TWTADE Rocker Switch Toggle On/Off 2Pin Pre-Wired 6A/250V 10A/125V AC

1

HiLetgo Micro SD TF Card Adater Reader Module 6Pin SPI Interface Driver Module with chip Level Conversion for Arduino UNO R3 MEGA 2560 Due

1

LED (generic)

1

Arduino Uno Rev3

1

Jumper wires (generic)

1

128GB Micro SD Card for Nintendo Switch & Switch Lite, U3 V30 Memory Card Compatible with Mobile Device Storage Phone Tablet Drone, Class 10 MicroSD Card with High Speed Up to 95MB/s

1

Resistor 220 ohm

Tools and machines

1

Solder Wire, Lead Free

1

Soldering iron (generic)

Apps and platforms

1

Arduino IDE

Project description

Code

Toggle Switch LED microSD Card Code

c_cpp

Upload this code to your Arduino Uno R3 board after wiring the LED, toggle switch, and SD card

Downloadable files

Fritzing Diagram

This is a diagram to help you on how to wire the project.

Fritzing Diagram

Comments

Only logged in users can leave comments