GithubHelp home page GithubHelp logo

juliannicholls / prev-arduino Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 2.0 35.27 MB

My Arduino Sketches, including ESP8266 and ESP32.

License: MIT License

C 3.36% C++ 93.78% JavaScript 2.85%
arduino arduino-sketches lcd distance servo life oled driver

prev-arduino's Introduction

Arduino

My Arduino Sketches.

If anyone is interested enough to read a blog article about how I did any of these, please contact me and I'll write one.

test-128x64ZW

Simple test of driving a 128x64 LCD display using U8Glib. Set up for a ST7920 via SPI, but any of the other U8Glibsupported types would work, of course.

Distance1

Sinmple read of an ultrasonic distance sensor, giving a time of flight in microseconds and distance in centimetres over the serial interface.

MCP23017-first

Drive an I2C connected MCP23017. Set up for 8 LEDs attached to GPA0-7, a button attached to GPB0 and another LED to GPB1, controlled by the button.

MCP library

A simple library to drive the MCP23017, which allows for setting pin direction individually and in bulk, and reading and writing of the pins indivdually and in bulk.

Keypad1

Simple read of a 4x4 keypad, using the Keypad library, outputting the pressed keys over the serial link.

ReadJoysticks

Read 2 analog joysticks and output the raw values over the serial link.

Stepper1

Drive a 28BYJ-48 stepper motor via its interface board continually one revolution clockwise, then counter-clockwise. The time for a revolution and hence the RPM are output on the serial link.

LCD-first

Very minimal check of a connected LCD display.

WS1812B

Use the Adafruit NeoPixel library to drive my 8-LCD pixel bar with a rainbow pattern. Updated to 24 LCDs.

stepper-driver

Badge1

First version of the sketch for my proximity badge. This one just displays the distance from an ultrasonic distance sensor in different colours of the NeoPixel strip.

Badge2

Second version of the proximity badge, which has the added 4x20 LCD. The LCD is cleared when there is no one around. Now that I know how to turn the backlight on and off under program control, I will do that next time.

Joysticks-128x64

Joysticks-128x64-Graphic

Keypad-MC17-4x4

Read a 4x4 keypad connected to a MCP23017 i2c interface and output the pressed keys to the serial link.

Keypad-MC17-4x3-128x64

Read a 4x3 keypad connected to a MCP23017 i2c interface and output the pressed keys to the LCD screen.

Keypad-MC17-4x4-Multi

Read a 4x4 keypad connected to a MCP23017 i2c interface and output the key press, release, and hold information to the serial link.

LCD-Joysticks

LDR-Reader-128x64

Stepper-MCP

Sweep

Sweep a servo from one end to the other, using the Servo library.

conway-life-128x64

John Conway's game of life implemented on the 128x64 LCD. Updated to use the newly discovered Copperhead spaceship which goes across the screen in a little over 500 generations.

keypad-MC17-stepper

keypad-stepper

meArm

Oscilloscope1

Simple oscilloscope which outputs to a 128x64 display. Initially set to 1V per division vertically and 100ms per division horizontally. Updates twice a second.

Tested with the output from a 2 transistor oscillator at about 4Hz.

prev-arduino's People

Contributors

dependabot[bot] avatar juliannicholls avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.