Generated by All in One SEO v5.0.0.1, this is an llms.txt file, used by LLMs to index the site. # Electronicsurplus A New Year and a New Decade Use Coupon Code 10%-OFF in Checkout ! ## Sitemaps - [XML Sitemap](https://electronicsurplus.ca/sitemap.xml): Contains all public & indexable URLs for this website. ## Posts - [Blogs](https://electronicsurplus.ca/?page_id=679) - Blogs - [Arduino: Control 2 Servo Motors with a Joystick](https://electronicsurplus.ca/?p=692) - In this tutorial you will learn how to control 2 servo motors using a Joystick module with the help of Arduino. What can I do with this setup? Great question! The first video shows a clever setup using a pan/tilt bracket kit which allows you to mount a sensor to it and control which direction it - [How to Program an Arduino](https://electronicsurplus.ca/?p=689) - Do you own Arduino and looking to program it as per your need? You have landed to the right article. Here in this article, we will learn how to program the Arduino board. There are many types of Arduino available, but Arduino Uno is most common. So when you are planning to build something for - [What is Arduino?](https://electronicsurplus.ca/?p=688) - Arduino is an open hardware and software platform used to develop an infinite amount of creative or technical devices. It’s famous among artists and electronic engineers who work on developing interactive installations and new media projects. Since Arduino has open hardware structure, it can be built by hand or can be purchased pre-assembled. The open ## Pages - [Shop](https://electronicsurplus.ca/) - Electronic Components across Canada & the US| - [About Us](https://electronicsurplus.ca/?page_id=674) - Welcome to ElectronicSurplus.ca Arduino, Sensors and Components and DYI projects. We're just like you, makers looking to find reasonably priced electronic parts in Canada. This problem is at the heart of what we do at ElectronicSurplus.ca. We offer incredibly affordable prices on electronic parts to everyone in Canada and United States We also love hearing your feedback! Just send - [Terms of Service](https://electronicsurplus.ca/?page_id=678) - ---- OVERVIEW This website is operated by ElectronicSurplus.ca. Throughout the site, the terms “we”, “us” and “our” refer to ElectronicSurplus.ca. ElectronicSurplus.ca offers this website, including all information, tools and services available from this site to you, the user, conditional upon your acceptance of all terms, conditions, policies and notices stated here. By visiting our site - [Refund Policy](https://electronicsurplus.ca/?page_id=676) - ---- RETURNS, EXCHANGES & REFUNDS Due to the delicate nature of our products and the very high possibility of damage through misuse, all sales of electronic components are final and unfortunately cannot be returned or exchanged. However, please contact us if you feel there is an issue with your order and we will address all - [Privacy Policy](https://electronicsurplus.ca/?page_id=3) - Who we are Our website address is: http://blog.electronicsurplus.ca. What personal data we collect and why we collect it Comments When visitors leave comments on the site we collect the data shown in the comments form, and also the visitor’s IP address and browser user agent string to help spam detection. An anonymized string created from - [Privacy Policy](https://electronicsurplus.ca/?page_id=677) - ---- SECTION 1 - WHAT DO WE DO WITH YOUR INFORMATION? When you purchase something from our store, as part of the buying and selling process, we collect the personal information you give us such as your name, address and email address. When you browse our store, we also automatically receive your computer’s internet protocol ## Products - [Servo Motor Micro - 360 degrees](https://electronicsurplus.ca/?product=servo-motor-micro-360-degrees) - Micro Motors are excellent for confined spaces. Servo motors are a staple for any maker. The 360 degree capability gives you maximum flexibility for all of your project ideas. This servo has a standard 3-pin power and control cable. - [2W Speaker (x2) (8ohm 3 cm round)](https://electronicsurplus.ca/?product=2w-speaker-x2-8ohm-3-cm-round) - These speakers are 2.0 watts 8ohm and 3 cm round (set of 2) - [RGB LED Module (Surface Mount)](https://electronicsurplus.ca/?product=rgb-led-module-surface-mount) - SMD RGB LED Module Code /* SETUP SMD RGB LED Arduino - - GND G - D9 R - D10 B - D11 GND - GND */ int redpin = 10; // select the pin for the red LED int greenpin = 9 ;// select the pin for the green LED int bluepin = 11; - [Resistors - 10 pack (Choose Value)](https://electronicsurplus.ca/?product=resistors-10-pack-choose-value) - We sell resistors in a 10 pack choose your value in the dropdown menu. - [Servo Motor - 360 degrees](https://electronicsurplus.ca/?product=servo-motor-360-degrees) - Servo motors are a staple for any maker. The 360 degree capability gives you maximum flexibility for all of your project ideas. This servo has a standard 3-pin power and control cable. Specifications Gear Type Metal Rotation 360deg Dimensions 40mm x 19mm x 43mm Weight 65g Operating Speed (4.8V) 0.17sec / 60 deg Operating - [Jumper Wires 40-Pin Splittable - 20cm (F:F)](https://electronicsurplus.ca/?product=jumper-wires-40-pin-splittable-20cm-f-f) - Jumper Wires 40pin Splittable 20cm (F:F) - [Buzzer Module (Passive)](https://electronicsurplus.ca/?product=buzzer-module-passive) - Passive Buzzer Module Code /* SETUP Passive-Buzzer Arduino S - D9 - 5V - - GND */ int buzzer = 9 ;// setting controls the digital IO foot buzzer void setup () { pinMode (buzzer, OUTPUT) ;// set the digital IO pin mode, OUTPUT out of Wen } void loop () { unsigned char i, - [Buzzer Module](https://electronicsurplus.ca/?product=buzzer-module) - Buzzer Module - [Capacitors - 10 pack (Choose Value)](https://electronicsurplus.ca/?product=capacitors-10-pack-choose-value) - We sell capacitors in a 10 pack choose your value in the dropdown menu. - [LED 3mm - 20 Pack (Choose Colour)](https://electronicsurplus.ca/?product=led-3mm-20-pack-choose-colour) - LED 3mm - 20 Pack (Choose Colour) - [Mercury Tilt Switch Module with Light](https://electronicsurplus.ca/?product=mercury-tilt-switch-module-with-light) - Light Cup Code /* SETUP Light Cup Arduino - - GND + - 5V S - D10 L - D13 */ int Led = 13; // Declaration of the LED-output pin int Sensor = 10; // Declaration of the sensor input pin int val; // Temporary variable void setup () { pinMode (Led, OUTPUT) ; - [RGB LED Module](https://electronicsurplus.ca/?product=rgb-led-module) - RGB LED Module Code /* SETUP RGB LED Arduino R - D9 G - D10 B - D11 GND - GND */ int redpin = 9; // select the pin for the red LED int greenpin = 10 ;// select the pin for the green LED int bluepin = 11; // select the pin for - [Jumper Wires 9" - 5 Pack (M:M)](https://electronicsurplus.ca/?product=jumper-wires-9-5-pack-m-m) - Jumper Wires 9" 5 Pack (M:M) - [16-Bit Neo Pixel Ring](https://electronicsurplus.ca/?product=16-bit-neo-pixel-ring) - 16 ultra bright smart LED Neo Pixels, arranged in a circle. The rings can be chained together by connecting the output pin of one to the input pin of another. You'll only need 1 microcontroller pin to control the longest chain you can make! Each LED is addressable as the driver chip is inside the - [Servo Motor - 180 degrees](https://electronicsurplus.ca/?product=servo-motor-180-degrees) - Servo motors are a staple for any maker. The 180 degree capability is great for steering RC vehicles and moving all of your creative ideas! This servo has a standard 3-pin power and control cable. Specifications Gear Type Metal Rotation 180deg Dimensions 40mm x 19mm x 43mm Weight 65g Operating Speed (4.8V) 0.17sec / - [HC-SR501 Infrared Sensor Module](https://electronicsurplus.ca/?product=hc-sr501-infrared-sensor-module) - Infrared Sensor Module Code //Henry's Bench // HC-SR501 Motion Detector // Sample Sketch int ledPin = 13; // LED on Pin 13 of Arduino int pirPin = 7; // Input for HC-S501 int pirValue; // Place to store read PIR Value void setup() { pinMode(ledPin, OUTPUT); pinMode(pirPin, INPUT); digitalWrite(ledPin, LOW); } void loop() { pirValue - [Rotary Encoder Module](https://electronicsurplus.ca/?product=rotary-encoder-module) - Rotary Encoder Module Code /* SETUP Rotary-Encoder Arduino GND - D2 + - 5V SW - DT - D4 CL.K - D3 */ int val; int encoder0PinA = 3; int encoder0PinB = 4; int encoder0Pos = 0; int encoder0PinALast = LOW; int n = LOW; void setup() { pinMode (encoder0PinA, INPUT); pinMode (encoder0PinB, INPUT); Serial.begin - [Mini Toggle Switch](https://electronicsurplus.ca/?product=mini-toggle-switch) - Contact form: SPDT Switch Function: ON-OFF-ON Contact rating: 6A @ 120VAC / 3A @ 250VAC Dimensions: 0.52"L x 0.32"W x 0.38"D Number of pins: 3 Solder lug terminals Round lever Mounting hole diameter: 0.25" Includes mounting hardware - [7-Bit Neo Pixel](https://electronicsurplus.ca/?product=7-bit-neo-pixel) - 7 ultra bright smart LED Neo Pixels, arranged in a circle. The rings can be chained together by connecting the output pin of one to the input pin of another. You'll only need 1 microcontroller pin to control the longest chain you can make! Each LED is addressable as the driver chip is inside the - [Servo Motor Micro - 180 degrees](https://electronicsurplus.ca/?product=servo-motor-micro-180-degrees) - Micro Motors are excellent for confined spaces. Servo motors are a staple for any maker. The 180 degree capability is great for steering RC vehicles and moving all of your creative ideas! This servo has a standard 3-pin power and control cable. - [Breadboard - Half Size (400 Holes)](https://electronicsurplus.ca/?product=breadboard-half-size-400-holes) - Solderless breadboards are the most convenient way to prototype with electronics and working out any kinks before you commit to your circuit. This half-sized breadboard is perfect to test smaller circuit designs. Most components used in electronic circuits can be interconnected by inserting their leads or terminals into the holes of the breadboard. Perfect for - [LED 5mm - 20 Pack (Choose Colour)](https://electronicsurplus.ca/?product=led-5mm-20-pack-choose-colour) - LED 5mm - 20 Pack (Choose Colour) - [Soil Moisture Sensor Module](https://electronicsurplus.ca/?product=soil-moisture-sensor-module) - Soil Moisture Sensor Code int led_pin =13; int sensor_pin =8; void setup() { pinMode(led_pin, OUTPUT); pinMode(sensor_pin, INPUT); } void loop() { if(digitalRead(sensor_pin) == HIGH){ digitalWrite(led_pin, HIGH); } else { digitalWrite(led_pin, LOW); delay(1000); } } - [Jumper Wires 3" - 10 Pack (M:M)](https://electronicsurplus.ca/?product=jumper-wires-3-10-pack-m-m) - Jumper Wire 3" 10 Pack (M:M) - [Jumper Wires 7" - 5 Pack (M:M)](https://electronicsurplus.ca/?product=jumper-wires-7-5-pack-m-m) - Jumper Wires 7" 5 Pack (M:M) - [Magnetic Hall Module (Analog)](https://electronicsurplus.ca/?product=magnetic-hall-module-analog) - Analog Magnetic Hall Module Code /* SETUP Analog Hall Arduino - - GND - 5V S - A5 */ int sensorPin = A5; // select the input pin int ledPin = 13; // select the pin for the LED int sensorValue = 0; // variable to store the value coming from the sensor void setup - [Breadboard - Mini (170 Holes)](https://electronicsurplus.ca/?product=breadboard-mini-170-holes) - Solderless breadboards are the most convenient way to prototype with electronics and working out any kinks before you commit to your circuit. This mini sized breadboard is perfect to test tiny circuit designs. Most components used in electronic circuits can be interconnected by inserting their leads or terminals into the holes of the breadboard. Perfect - [Touch Pad Module](https://electronicsurplus.ca/?product=touch-pad-module) - Touch Pad Sensor Module Code /* SETUP Touch Sensor Arduino A0 - GND - GND + - 5V D0 - D3 */ int Led = 13 ; // define LED Interface int buttonpin = 3; // define Metal Touch Sensor Interface int val ; // define numeric variables val void setup () { pinMode (Led, - [Tap Module](https://electronicsurplus.ca/?product=tap-module) - Tap Sensor Module Code /* SETUP Tap-Module Arduino S - D10 - 5V - - GND */ int knockPin = 10; // Use Pin 10 as our Input int knockVal = HIGH; // This is where we record our shock measurement boolean bAlarm = false; unsigned long lastKnockTime; // Record the time that we measured - [9V Power Supply](https://electronicsurplus.ca/?product=9v-switch) - Input: 100~240V, 50/60Hz Output: 9V, 1A 2-flat-pin plug Connector size: 5.5 x 2.1mm Cable Length: 100cm - [Button Module](https://electronicsurplus.ca/?product=button-module) - Button Module - [64-Bit Neo Pixel Board](https://electronicsurplus.ca/?product=64-bit-neo-pixel-board) - 64 ultra bright smart LED Neo Pixels, arranged in a square. The squares can be chained together by connecting the output pin of one to the input pin of another. You'll only need 1 microcontroller pin to control the longest chain you can make! Each LED is addressable as the driver chip is inside the - [LED Module Small - 2-Colour Flash](https://electronicsurplus.ca/?product=led-module-small-2-colour-flash) - LED Module Small 2 Colour flash - [5V DC Relay Module](https://electronicsurplus.ca/?product=5v-dc-relay-module) - 5V DC Relay Module Code /* SETUP Relay Arduino - - GND + - 5V S - D10 */ int relay = 10; // relay turns trigger signal - active high; void setup () { pinMode (relay, OUTPUT); // Define port attribute is output; } void loop () { digitalWrite (relay, HIGH); // relay conduction; - [Jumper Wires 40-Pin Splittable - 20cm (M:M)](https://electronicsurplus.ca/?product=jumper-wires-40-pin-splittable-20cm-m-m) - Jumper Wires 40pin Splittable 20cm (M:M) - [Potentiometer - 10k](https://electronicsurplus.ca/?product=potentiometer-10k) - Potentiometer Code /* SETUP * ---- * * |-- 1 * pot * |-- 2 * * |-- 3 *----- Potentiometer Arduino 1 - 3.3V 2 - GND 3 - D2 */ int potPin = 2; // select the input pin for the potentiometer int ledPin = 13; // select the pin for the LED - [LED Module - 2-Colour Flash](https://electronicsurplus.ca/?product=led-module-2-colour-flash) - 2-Color LED Module Code /* SETUP 2 Color LED Arduino - - GND - D10 S - D11 */ int redpin = 11; // select the pin for the red LED int greenpin = 10; // select the pin for the green LED int val; void setup () { pinMode (redpin, OUTPUT); pinMode (greenpin, OUTPUT); - [Arduino UNO Rev3](https://electronicsurplus.ca/?product=arduino-uno-rev3) - Arduino Uno is a microcontroller board based on the ATmega328P. It has 14 digital input/output pins (of which 6 can be used as PWM outputs), 6 analog inputs, a 16 MHz quartz crystal, a USB connection, a power jack, an ICSP header and a reset button. It contains everything needed to support the microcontroller; simply connect - [USB A/B Cable - 50cm Charger (Connect Arduino to Computer)](https://electronicsurplus.ca/?product=usb-a-b-cable-50cm-charger-connect-arduino-to-computer) - Use it to connect Arduino Uno, Arduino Mega 2560, Arduino 101 or any board with the USB female A port of your computer. Cable length 50cm. USB cable type A/B Standard USB 2.0 cable. USB 2.0 Specification Compliant 1 X USB Type A Male, 1 X USB Type B Male Fully compatible with PC and - [0.25W Speaker (x2) (8ohm 4 cm round)](https://electronicsurplus.ca/?product=0-25w-speaker-x2-8ohm-4-cm-round) - These speakers are 8ohm 0.25 watt 4cm round (set of 2) - [IR Emitter Module](https://electronicsurplus.ca/?product=ir-emitter-module) - IR Emitter Module - [Arduino Starter Kit (K000007)](https://electronicsurplus.ca/?product=arduino-starter-kit-k000007) - OverviewOverview The Starter Kit walks you through the basics of using the Arduino in a hands-on way. You'll leam through building several creative projects. The kit includes a selection of the most common and useful electronic components with a book of 15 projects. Starting the basics of electronics, to more complex projects, the kit will - [Line Tracking Module](https://electronicsurplus.ca/?product=line-tracking-module) - Line Tracking Module Code /* SETUP Line-Tracking Arduino GND - GND VCC - 5V OUT - D2 */ void setup() { Serial.begin(9600); } void loop() { Serial.println(digitalRead(2)); // print the data from the sensor delay(500); } - [Jumper Wires 40-Pin Splittable - 10cm (M:M)](https://electronicsurplus.ca/?product=jumper-wires-40-pin-splittable-10cm-m-m) - Jumper Wires 40pin Splittable 10cm (M:M) - [60-Bit Neo Pixel Ring - 4 Quarters](https://electronicsurplus.ca/?product=60-bit-neo-pixel-ring-4-quarters) - 60 ultra bright smart LED Neo Pixels, arranged in a beautiful ring. The quarter pieces can be connected together to create a full ring, and multiple rings can be chained together by connecting the output pin of one to the input pin of another. You'll only need 1 microcontroller pin to control the longest chain - [IR Receiver Module](https://electronicsurplus.ca/?product=ir-receiver-module) - IR Receiver Module - [Avoid Module](https://electronicsurplus.ca/?product=avoid-module) - Avoid Sensor Module Code /* SETUP Avoid Sensor Arduino GND - D2 + - 5V OUT - GND EN - */ int Led = 13 ;// define LED Interface int buttonpin = 3; // define the obstacle avoidance sensor interface int val ;// define numeric variables val void setup () { pinMode (Led, OUTPUT) ;// - [16-Bit Neo Pixel Square](https://electronicsurplus.ca/?product=16-bit-neo-pixel-square) - 16 ultra bright smart LED Neo Pixels, arranged in a square. The squares can be chained together by connecting the output pin of one to the input pin of another. You'll only need 1 microcontroller pin to control the longest chain you can make! Each LED is addressable as the driver chip is inside the - [Touch Module](https://electronicsurplus.ca/?product=touch-module) - Touch Sensor Module Code /* SETUP Touch Sensor Arduino VCC - 5V GND - GND SIG - D3 */ int TouchSensor = 3; //connected to digital pin D3 int led = 13; void setup(){ Serial.begin(9600); // communication speed pinMode(led, OUTPUT); pinMode(TouchSensor, INPUT); } void loop(){ if(digitalRead(TouchSensor)==HIGH) //read touch sensor signal { digitalWrite(led, HIGH); // if - [Ball Switch Module](https://electronicsurplus.ca/?product=ball-switch-module) - Ball Switch Module Code /* SETUP Ball Switch Arduino - - GND - 5V S - D3 */ int Led = 13 ;// define LED Interface int buttonpin = 3; // define the tilt switch sensor interfaces int val ;// define numeric variables val void setup () { pinMode (Led, OUTPUT) ;// define LED as - [MQ-2 Gas Sensor Module](https://electronicsurplus.ca/?product=mq-2-gas-sensor-module) - Gas Sensor Module Code /******* code from: https://www.hackster.io/Aritro *******/ int redLed = 12; int greenLed = 11; int buzzer = 10; int smokeA0 = A5; // Your threshold value int sensorThres = 400; void setup() { pinMode(redLed, OUTPUT); pinMode(greenLed, OUTPUT); pinMode(buzzer, OUTPUT); pinMode(smokeA0, INPUT); Serial.begin(9600); } void loop() { int analogSensor = analogRead(smokeA0); Serial.print("Pin A0: - [Sound Detector Module (Small)](https://electronicsurplus.ca/?product=sound-detector-module-small) - Sound Sensor Module Code /* SETUP Sound Sensor Arduino A0 - GND - GND + - 3.3V D0 - D3 */ int Led = 13 ;// define LED Interface int buttonpin = 3; // define D0 Sensor Interface int val = 0;// define numeric variables val void setup () { pinMode (Led, OUTPUT) ;// define - [Shock Module](https://electronicsurplus.ca/?product=shock-module) - Shock Sensor Module Code /* SETUP Shock-Sensor Arduino S - D10 - 5V - - GND */ int Led = 13 ;// define LED Interface int Shock = 10; // define the vibration sensor interface int val; // define numeric variables val void setup () { pinMode (Led, OUTPUT) ; // define LED as output - [Heartbeat Detector Module](https://electronicsurplus.ca/?product=heartbeat-detector-module) - Heartbeat Detector Module Code /* SETUP Heartbeat Sensor Arduino - - GND - 5V S - A0 */ int led_Pin = 13; // initializing the led pin int output_Pin = A0; // initializing the sensor output pin //initializng other variables double alpha = 0.75; int period = 200; double change = 0.0; void setup() { - [Temperature & Humidity Module](https://electronicsurplus.ca/?product=temperature-humidity-module) - Temperature and Humidity Sensor Module Code /* SETUP Temp-Humidity Arduino GND - GND DATA - D8 VCC - 5V */ int DHpin = 8; byte dat [5]; byte read_data () { byte data; for (int i = 0; i < 8; i ++) { if (digitalRead (DHpin) == LOW) { while (digitalRead (DHpin) == LOW); - [Light Blocking Module](https://electronicsurplus.ca/?product=light-blocking-module) - Light Block Sensor Module Code /* SETUP Light-Block Arduino S - D2 - 5V - - GND */ // set pin numbers: const int buttonPin = 2; // the number of the pushbutton pin const int ledPin = 13; // the number of the LED pin // variables will change: int buttonState = 0; // - [Photoresistor 5mm (5 pack)](https://electronicsurplus.ca/?product=photoresistor-5mm-5-pack) - Photo Resistor 5pack - [Flame Detector Module](https://electronicsurplus.ca/?product=flame-detector-module) - Flame Detector Module Code /* SETUP Flame Sensor Arduino A0 - A0 GND - GND + - 5V */ // lowest and highest sensor readings const int sensorMin = 0; // sensor minimum const int sensorMax = 1024; // sensor maximum void setup() { Serial.begin(9600); // initialize serial communication @ 9600 baud } void loop() - [LED Module - 7-Colour Flash](https://electronicsurplus.ca/?product=led-module-7-colour-flash) - 7-Color LED Module Code /* SETUP 7 Color LED Arduino - - GND + - 5V S - D13 */ void setup () { // Initialize the digital pin as an output. // Pin 13 has an LED connected on most Arduino boards: pinMode (13, OUTPUT); } void loop () { digitalWrite (13, HIGH); // - [Magnetic Hall Module (Linear)](https://electronicsurplus.ca/?product=magnetic-hall-module-linear) - Linear Magnetic Hall Sensor Module Code /* SETUP Linear Hall Arduino A0 - GND - GND + - 5V D0 - D3 */ int Led = 13; // define LED Interface int buttonpin = 3; // define the linear Hall magnetic sensor interface int val; // define numeric variables val void setup () { pinMode - [Jumper Wires 40-Pin Splittable - 20cm (F:M)](https://electronicsurplus.ca/?product=jumper-wires-40-pin-splittable-20cm-f-m) - Jumper Wires 40pin Splittable 20cm (F:M) - [Jumper Wires 6" - 10 Pack (M:M)](https://electronicsurplus.ca/?product=jumper-wires-6-10-pack-m-m) - Jumper Wires 6" - 10 Pack (M:M) - [Mercury Tilt Switch Module](https://electronicsurplus.ca/?product=mercury-tilt-switch-module) - Mercury Tilt Switch Module Code /* SETUP Tilt Switch Arduino - - GND - 5V S - D3 */ int Led = 13 ;// define LED Interface int buttonpin = 3; // define the mercury tilt switch sensor interface int val ;// define numeric variables val void setup () { pinMode (Led, OUTPUT) ;// define LED - [Potentiometer High Precision (Trimmer Pot)](https://electronicsurplus.ca/?product=potentiometer-high-precision-trimmer-pot) - Potentiometer High Precision (Trimmer Pot) - [Single Bit Neo Pixel Dot - 10 Pack](https://electronicsurplus.ca/?product=single-bit-neo-pixel-dot-10-pack) - 1-bit ultra bright smart LED Neo Pixel. Can be chained together by connecting the output pin of one to the input pin of another. You'll only need 1 microcontroller pin to control the longest chain you can make! Each LED is addressable as the driver chip is inside the LED. - [Tactile Push Button - 7mm](https://electronicsurplus.ca/?product=tactile-push-button-7mm-5-pack) - Tactile buttons are great way to add interactive elements to all sorts of projects. The pins fit directly into a breadboard. Tactile Push Button Code /* SETUP Button Arduino S - D2 - 5V - - GND */ // set pin numbers const int buttonPin = 2; // the number of the pushbutton pin const - [Tactile Push Button with Cap - 12mm](https://electronicsurplus.ca/?product=tactile-push-button-with-cap-12mm) - Tactile buttons are great way to add interactive elements to all sorts of projects. The coloured cap is removable and the pins fit directly into a breadboard. Tactile Push Button Code /* SETUP Button Arduino S - D2 - 5V - - GND */ // set pin numbers const int buttonPin = 2; // the - [Magnetic Hall Module](https://electronicsurplus.ca/?product=magnetic-hall-module) - Magnetic Hall Module - [Laser Beam Emitter Module](https://electronicsurplus.ca/?product=laser-beam-emitter-module) - Laser Beam Emitter Module Code /* SETUP Laser Arduino - - GND - 5V S - D13 */ void setup () { pinMode (13, OUTPUT); // define the digital output interface 13 feet } void loop () { digitalWrite (13, HIGH); // open the laser head delay (1000); // delay one second digitalWrite (13, LOW); - [Microswitch - 2 pieces](https://electronicsurplus.ca/?product=microswitch-2-pieces) - 5V DC Relay Module Code /* switch * * Each time the input pin goes from LOW to HIGH (e.g. because of a push-button * press), the output pin is toggled from LOW to HIGH or HIGH to LOW. There's * a minimum delay between toggles to debounce the circuit (i.e. to ignore * noise). - [Photoresistor Module](https://electronicsurplus.ca/?product=photoresistor-module) - Photoresistor Code /* SETUP Photoresistor Arduino S - A5 - 5V - - GND */ int sensorPin = A5; // select the input pin for the potentiometer int ledPin = 13; // select the pin for the LED int sensorValue = 0; // variable to store the value coming from the sensor void setup() { - [Temperature Module (Digital)](https://electronicsurplus.ca/?product=temperature-module-digital) - Temperature Sensor Module (Digital) - [Reed Switch Module (Large)](https://electronicsurplus.ca/?product=reed-switch-module-large) - Reed Switch Module Code /* SETUP Reed-Switch Arduino A0 - D9 GND - GND + - 5V */ int Led = 13 ;// define LED Interface int buttonpin = 3; // define the Reed sensor interfaces int val ;// define numeric variables val void setup () { pinMode (Led, OUTPUT) ;// define LED as output - [Reed Switch Module (Small)](https://electronicsurplus.ca/?product=reed-switch-module-small) - Reed Switch Module Code /* SETUP Reed-Switch Arduino S - D9 - 5V - - GND */ int Led = 13 ;// define LED Interface int buttonpin = 3; // define the Reed sensor interfaces int val ;// define numeric variables val void setup () { pinMode (Led, OUTPUT) ;// define LED as output interface - [Sound Detector Module (Large)](https://electronicsurplus.ca/?product=sound-detector-module-large) - Sound Sensor Module Code /* SETUP Sound Sensor Arduino A0 - GND - GND + - 3.3V D0 - D3 */ int Led = 13 ;// define LED Interface int buttonpin = 3; // define D0 Sensor Interface int val = 0;// define numeric variables val void setup () { pinMode (Led, OUTPUT) ;// define - [Joystick Module](https://electronicsurplus.ca/?product=joystick-module) - Analog joysticks are a great way to add some control in your projects. The module has 5 pins: Vcc, Ground, X, Y, Key. The thumbstick is analog and should provide more accurate readings than simple ‘directional’ joysticks tat use some forms of buttons, or mechanical switches. Additionally, you can press the joystick down to activate a ‘press - [Breadboard - Full Size (830 Holes)](https://electronicsurplus.ca/?product=breadboard-full-size-830-holes) - Solderless breadboards are the most convenient way to prototype with electronics and working out any kinks before you commit to your circuit. This full sized breadboard is great for prototyping larger circuit designs. Most components used in electronic circuits can be interconnected by inserting their leads or terminals into the holes of the breadboard. Perfect for working with Arduino, Raspberry - [UBS 3.0 OTG USB Flash Drive 3 in 1 Type C & Micro USB](https://electronicsurplus.ca/?product=ubs-3-0-otg-usb-flash-drive-pen-drive-3-in-1-type-c-micro-usb-stick-3-0-flash-drive) - Brand Name: olevo Interface Type: USB 3.0 Material: Metal Product Weight: 9g Model Number: Type C USB FLASH Product Type: Multifunctional Style: Lanyard Style: Pen Style: Rectangle Style: ROBOT Style: Stick Package: Yes Encryption: No Time to market: 2018 Year Suitable for mobile phones:: Samsung/Huawei/Xiaomi/meizu/vivo... - [Temperature Module](https://electronicsurplus.ca/?product=temperature-module) - Temperature Sensor Module - [Temperature Module (Analog)](https://electronicsurplus.ca/?product=temperature-module-analog) - Temperature Sensor Module (Analog) ## Categories - [News & Updates](https://electronicsurplus.ca/?cat=190) - [Tutorials](https://electronicsurplus.ca/?cat=191) - [Informational](https://electronicsurplus.ca/?cat=192) ## Product categories - [Usb Storage](https://electronicsurplus.ca/?product_cat=default) - [LEDS](https://electronicsurplus.ca/?product_cat=leds) - [Motors & Fans](https://electronicsurplus.ca/?product_cat=motors-fans) - [Sensors](https://electronicsurplus.ca/?product_cat=sensors) - [Power Supplies & Wires](https://electronicsurplus.ca/?product_cat=wires-power-supplies) - [Breadboards](https://electronicsurplus.ca/?product_cat=breadboards) - [Buttons & Switches](https://electronicsurplus.ca/?product_cat=buttons-switches) - [Resistors & Capacitors](https://electronicsurplus.ca/?product_cat=resistors-capacitors) - [Arduino Starter Kits](https://electronicsurplus.ca/?product_cat=arduino) - [Products](https://electronicsurplus.ca/?product_cat=products) - [Neo Pixels](https://electronicsurplus.ca/?product_cat=neo-pixels) - [Speakers](https://electronicsurplus.ca/?product_cat=speakers) ## Product tags - [wire](https://electronicsurplus.ca/?product_tag=wire) - [light dependent resistor](https://electronicsurplus.ca/?product_tag=light-dependent-resistor) - [Specialty Part](https://electronicsurplus.ca/?product_tag=specialty-part) - [kill switch](https://electronicsurplus.ca/?product_tag=kill-switch) - [lever switch](https://electronicsurplus.ca/?product_tag=lever-switch) - [micro switch](https://electronicsurplus.ca/?product_tag=micro-switch) - [ada fruit](https://electronicsurplus.ca/?product_tag=ada-fruit) - [ada fruit neopixel](https://electronicsurplus.ca/?product_tag=ada-fruit-neopixel) - [adafruit](https://electronicsurplus.ca/?product_tag=adafruit) - [neo-pixel](https://electronicsurplus.ca/?product_tag=neo-pixel) - [NeoPixel](https://electronicsurplus.ca/?product_tag=neopixel) - [speakers](https://electronicsurplus.ca/?product_tag=speakers-2) - [beginner kit](https://electronicsurplus.ca/?product_tag=beginner-kit) - [DIY](https://electronicsurplus.ca/?product_tag=diy) - [diy kit](https://electronicsurplus.ca/?product_tag=diy-kit) - [student](https://electronicsurplus.ca/?product_tag=student) - [Featured](https://electronicsurplus.ca/?product_tag=featured) - [Arduino](https://electronicsurplus.ca/?product_tag=arduino) - [beginner](https://electronicsurplus.ca/?product_tag=beginner) - [specialty parts](https://electronicsurplus.ca/?product_tag=specialty-parts) - [components](https://electronicsurplus.ca/?product_tag=components) - [electronics](https://electronicsurplus.ca/?product_tag=electronics) - [electronic](https://electronicsurplus.ca/?product_tag=electronic) - [electronic parts](https://electronicsurplus.ca/?product_tag=electronic-parts) - [parts](https://electronicsurplus.ca/?product_tag=parts) - [sensors](https://electronicsurplus.ca/?product_tag=sensors) - [resistors](https://electronicsurplus.ca/?product_tag=resistors) - [capacitors](https://electronicsurplus.ca/?product_tag=capacitors) - [micro-processors](https://electronicsurplus.ca/?product_tag=micro-processors) - [learning](https://electronicsurplus.ca/?product_tag=learning) - [education](https://electronicsurplus.ca/?product_tag=education) - [hobby](https://electronicsurplus.ca/?product_tag=hobby) - [bread board](https://electronicsurplus.ca/?product_tag=bread-board) - [circuits](https://electronicsurplus.ca/?product_tag=circuits) - [power supply](https://electronicsurplus.ca/?product_tag=power-supply) - [logic](https://electronicsurplus.ca/?product_tag=logic) - [electric](https://electronicsurplus.ca/?product_tag=electric) - [electrical](https://electronicsurplus.ca/?product_tag=electrical) - [circuit](https://electronicsurplus.ca/?product_tag=circuit) - [coonnectors](https://electronicsurplus.ca/?product_tag=coonnectors) - [usb](https://electronicsurplus.ca/?product_tag=usb) - [usb cable](https://electronicsurplus.ca/?product_tag=usb-cable) - [robots](https://electronicsurplus.ca/?product_tag=robots) - [robotics](https://electronicsurplus.ca/?product_tag=robotics) - [battery](https://electronicsurplus.ca/?product_tag=battery) - [power](https://electronicsurplus.ca/?product_tag=power) - [usb storage](https://electronicsurplus.ca/?product_tag=usb-storage) - [flash drive](https://electronicsurplus.ca/?product_tag=flash-drive) - [pen stick](https://electronicsurplus.ca/?product_tag=pen-stick) - [modules](https://electronicsurplus.ca/?product_tag=modules) - [sensor modules](https://electronicsurplus.ca/?product_tag=sensor-modules)