Skip to content
  • Home
  • Contact
Search
Close

Fun with Arduino

Arduino Starter Kit and More

Category: Learning

Fun with Arduino 16 LED (Strip) Fading

ImageFebruary 21, 2019February 22, 2019 RudyB1 Comment

In the previous video we used analogWrite() to dim a LED (strip). We can make a fade effect when we gradually increase or decrease the analog output, step by step, with an interval time. A fade is nice for many applications … kitchen counter light, model railway overhead lighting (to gradually shift from night to […]

Fun with Arduino 15 LED dimmer with Pulse Width Modulation, analogWrite()

ImageFebruary 17, 2019February 22, 2019 RudyB3 Comments

We have used analogRead() to measure the voltage on an analog input pin. Arduino also has the opposite function available: analogWrite(). This name is misleading though. The analog inputs are ‘real’ … the applied voltage is measured by a 10 bit A/D converter. But the Arduino does not have a D/A converter on board. An […]

Fun with Arduino 14 Day Night Cycle with millis(), no delay()

ImageFebruary 10, 2019February 22, 2019 RudyB6 Comments

Now that we know how to get rid of the delay(0 and use millis() in stead (see previous video 13) we can finalize our Automatic Day Night Light Cycle unit to have direct on screen feedback of cycle time adjustment by the user and to have the cycle stop, and the lights turn off, immediately […]

Fun with Arduino 13 Timer with millis(), no delay() , Multitasking

ImageFebruary 10, 2019February 22, 2019 RudyB11 Comments

Our day / night light switching unit works fine, but for one thing: when we input a new cycle time via keyboard or via an analog input, we do not have any feedback on the monitor on what we are inputting. This is caused by the delay() instruction, which is easy to use, but which […]

Fun with Arduino 12 Analog Input, analogRead(), Change Range, map()

ImageFebruary 7, 2019February 22, 2019 RudyB2 Comments

Now that the User Interface based on keyboard input is working (see video 11) we’ll now focus on the other solution we promised our customer, the Tech Company: a rotating knob on the switch panel. We have a couple of options … we can use an analog potentiometer, or a digital rotary encoder. I made […]

Fun with Arduino 11 Data Input via Keyboard: Serial.read(), Serial.parseInt()

ImageFebruary 3, 2019February 22, 2019 RudyBLeave a comment

Since video 10 our software shows the cycle status and the current day / night time on the PC screen. The next step is to be able to enter a new value for the cycle time via the keyboard. Luckily this is made easy … the Arduino has several instructions to read data: Serial.available() tells […]

Fun with Arduino 10 Show the Day-Night Cycle Status on the User Interface

ImageJanuary 31, 2019February 22, 2019 RudyB6 Comments

Now that our code works well, thanks to using the unsigned long data type or by typecasting an int to an unsigned long where needed, we can now continue with our User Interface. We like to see the current status of the day-night cycle on the PC screen and dynamically update it. The plan is […]

Fun with Arduino 09 Variables & Data Types: byte, int, long, unsigned

ImageJanuary 25, 2019February 22, 2019 RudyBLeave a comment

Before we continue with our User Interface we first have a little challenge with the code of video 8. If you tried the code you may have found that it did not work as we expected: when we threw the switch, the lights went on, but they did not turn off after 180 seconds. Why […]

Fun with Arduino 08 User Interface Serial.print()

ImageJanuary 24, 2019February 22, 2019 RudyBLeave a comment

When I worked with a large tech company, we had this cartoon on the wall to remind us of the importance of good communication between all parties involved in a project: If a project starts with unambiguous specifications, properly reviewed and agreed upon by all parties, costly modifications in the later phases of a project […]

Fun with Arduino 06 Automatic Day & Night Cycle with on/off Switch

ImageJanuary 17, 2019February 22, 2019 RudyB2 Comments

In video 5 we saw how we can connect multiple LEDs to the Arduino via a relay or a FET switch module. With those we can switch the higher currents needed for say street lights on a model layout. In video 4 we simulated a night cycle, triggered by a push button. Why not make […]

Posts navigation

Older Posts
Newer Posts

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 230 other followers

Recent Posts

  • Fun with Arduino 42 Railway Crossing Multi Track Two Way
  • Fun with Arduino 41 Station Platform Display with Real Time Clock DS1307.
  • Fun with Arduino 40 Station Platform Departure Display with Analog Clock
  • Fun with Arduino 39 OLED Display SSD1306
  • Fun with Arduino 38 Ultrasonic Distance Measurement with HC-SR04

Previous Articles:

  • September 2020 (1)
  • February 2020 (1)
  • September 2019 (2)
  • August 2019 (1)
  • July 2019 (3)
  • June 2019 (3)
  • May 2019 (4)
  • April 2019 (4)
  • March 2019 (6)
  • February 2019 (8)
  • January 2019 (8)
  • December 2018 (4)

Tags

Arduino crossing DCC driver kit led model motor nano railroad railway sensor servo sketch Software starter stepper switch tutorial uno
Website Powered by WordPress.com.
Back to top
Create your website at WordPress.com
Get started
Fun with Arduino
Website Powered by WordPress.com.
Cancel
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy