Jun 23, 2022Member-onlyInterface any Generic OLED Screen on ArduinoAn OLED screen is a popular solution to add some visual output to your DIY projects. Adafruit provides a line of screen products. They also provide Arduino library for their screens, so basically you don’t have any problem if you purchase their screens. However, if you ever tried to use…Arduino8 min readArduino8 min read
Published in Nerd For Tech·Mar 12, 2022Member-onlyNeoPixel ColorPicker in One HourThis article described a “WYSIWYG” hardware colorpicker tool for NeoPixel LED strip. Background Recently I am working on a DIY project that needs to display different gradients with NeoPixel (WS2812b) RGB LED strip. Technically, there’s nothing difficult to show gradients, since most development boards already have LED libraries that support HSV…Neopixel8 min readNeopixel8 min read
Published in ITNEXT·Dec 3, 2021Member-onlyMigrate from Keil to SDCCToday I got the following error when compiling my code with Keil uVision 5: *** FATAL ERROR L250: CODE SIZE LIMIT IN RESTRICTED VERSION EXCEEDED MODULE: C:\KEIL\C51\LIB\C51FPS.LIB (-----) LIMIT: 0800H BYTES After googling I found that 0800H (2KB) is the code size limit of the evaluation copy, which means I…Keil3 min readKeil3 min read
Published in Nerd For Tech·Sep 29, 2021Member-onlyDIY LED Canton TowerA couple of months ago I accidentally bought 400 auto-flashing LEDs thinking they were white LEDs. The auto-flashing feature is amazing but pretty annoying too, because there’s no way to control the animation. …Hardware6 min readHardware6 min read
Published in Nerd For Tech·Sep 4, 2021Member-onlyHow I made this real time clock with Raspberry Pi PicoFollowing my previous LED matrix project I wanted to make a larger LED matrix. I have some 7cm x 9cm single sided perfboards in my inventory which look like this:Raspberry Pi8 min readRaspberry Pi8 min read
Published in Nerd For Tech·Aug 11, 2021Member-onlyBuild a Raspberry Pi Pico Powered 8x8 LED Matrix from ScratchThere are plenty of LED matrix tutorials but most of them are using Arduino. Since Raspberry Pi Pico is a smaller microcontroller and it is relatively cheap, I decided to create a LED matrix with it instead. Hardware Plan The most common way of driving a LED matrix is using shift registers…Hardware7 min readHardware7 min read
Jun 5, 2021Member-onlyKiddle CO Alarm DisassemblyMy CO Alarm expired recently so I decided to disassemble it and see what components I could get. The model number of the CO Alarm is KN-COPP-3-RC, made in August 2013.Hardware2 min readHardware2 min read
Published in Nerd For Tech·Apr 22, 2021How to Add Light and Temperature Sensors to Raspberry PiRecently I am working on a small hardware project with Raspberry Pi. I want to use Raspberry Pi 3 B+ as an indoor monitor. It should be able to detect the brightness and turn on the light when it is getting dark; it should also be able to remind me…Raspberry Pi10 min readRaspberry Pi10 min read
Published in ITNEXT·Dec 31, 2020Member-onlyCreate a Stopwatch App with FlutterI’ve been learning Flutter and Dart language recently and they really impressed me. Flutter is greatly inspired by React and many concepts are already familiar: stateful/stateless, render function, component hierarchy, etc. …Flutter4 min readFlutter4 min read
Published in HackerNoon.com·Jun 25, 2019Member-onlyHow to Create a Linear Regression Model from ScratchLinear regression is one of the simplest machine learning algorithms. In this post I will guide you step by step creating a Linear Regression model from scratch. What is Linear Regression? Let’s start with some data. Suppose we measured different car models and collected some data with respect to their fuel effeciency and engine…Machine Learning8 min readMachine Learning8 min read