Arduino Projects 2021

From CMEE4K
Jump to navigation Jump to search

Fiber optic Lamp

Fiber Optic Lamp.png

Enhancing the original code

In the original source code, Arduino Pro Mini (tested with many Pro Mini) never wake up, after the Going_To_Sleep() call. Since this is a simple program, it doesn't need to use Interrupt, we changed to Control Variable. We also created another version: add Demo mode which switching color, palette, pattern every 7 seconds (can be changed). Here are the instruction:

  • Download this Fiber_Optic_LED_Lamp ZIP file
  • Unzip it into your Arduino root directory. Two directories are unzipped.
    1. Fiber_Optic_LED_Lamp - Use Control variable
    2. Fiber_Optic_LED_Lamp_demo - Add demo mode which changes mode every 7 seconds.


Real Time Clock, OLED display, RGB LED strip project

RTC OLED LED.png

Add a relay to control an art work

RTC Control ArtWork.png
YouTube: see this project in action

Use Arduino Pro Micro to generate Mouse events to prevent screen out

ProMicro SSD1306.pdf



Display Time with Color LED ranges

Use 3 Color LED ranges to display time from RTC (Real Time Clock) SD1307
WS2812b LED Clock.png   DS1307 WS2812 RangeClock.pdf

Enhancement: Add an OLED display for Date/Time in the middle

  • Just add an OLED SSD1306 to I2C connection (A4 + A5).

Improved LED clock.jpeg

Filament dehumidifier

  • Based on this instructables: Super Cheap and Simple 3D Filament Dryer project
    • Using 100W light bulb.
    • 3 PC fans. One pump in fresh air, the other twos keep air circulating.
    • All 3 fans run all the time.
    • 1 hour to heat up to 49-51C (120-125F).
    • Bring humidity level down to 10%.
    • 4-6 hours process

Our project and experience

DHT11 Rekay SSR.png   Arduino DHT11 dehumidity.pdf

Filament dehumidifier.png

  • The container can hold 6 filament rolls.
  • With the PC fan pull in fresh air all the time, the internal temperature can only up to 35C (not even close 51C).
  • Humidity can down to 10% after 2-3 hours.
  • Let it run for 6-8 hours, and internal humidity is keeping at 10% for 5 hours.



Arduino Based Self Balancing Bot




Using ws2812b RGB (10) LED strip from 2020 Arduino Programming class

From our 2020 Oct - Nov STEM class (see this page Introduction to Arduino Programming 2020 Fall); in the Fifth week, every member connecting a Arduino with a WS2812b RGB 10 LED strip. The connection diagram is identical with the above Fiber optic Lamp project.

In that class, our demo code only displays the LED with fixed colours in cycle. Since it is only a demo for using ws2812b, it was not too much fun from that setup. In this section, we down graded the Fiber optic lamp code (download this ws2812b_9LED_box.zip file), and using some DollarShop wooden boxes to create more fun projects, and to make use of the existing hardware.

Different projects (boxes) with same Arduino code

  • The white piggy bank box costs $4 (DollarShop). The 3 LED ranges cost $12 (AliExpress)
    Altern ManyLED.png
  • The white 3x3 box with some laser cut figures $2 (DollarShop)
    White 9LED.png
  • Original, it is white 3x3 box with PVC cover $2 (DollarShop). Spray with black paint.
    Black 9LED.png


Add runtime code to display sketch name and version

YouTube: Arduino displays sketch name and version