Skip to main content

Posts

Nuvoton NUC980 IIOT Board Experiments (Interface ST7735 SPI display)

Introduction Nuvoton NUC980  is a 300 Mhz ARM processor. Has a host of peripherals onboard: 64/128 MB RAM, 2 Ethernets, 2 CAN masters, some 8 UARTS, SPI, I2C , etc It comes with Linux, uboot and a buildroot system for generating system assets. A popular board is the NUC980 IIOT board The major advantage is that this processor is available for a low cost of 5$ (2021) Intention Try and see how fast the system is Performance of python etc. Given that it was a low RAM system, how convenient would it be write a program in python. Maybe interface a device say a Display. Experiments The tar ball that Nuvoton provides is an approx 8 GB virtual machine running Ubuntu 18.04. One can run this virtual image on an VM emulator.  The recommended is VMWARE but it ran comfortably even in an Oracle VirtualBox VME. After logging into the VM and on running a make nuc980_defconfig it generated the uboot, linux and other assets. On Linux one can use nuwriter to flash the SPINAND.  A r...

IOT Dot Matrix Clock

Dot Matrix Clock IOT Dot Matrix Clock / Dot Matrix Display  (DMC) (DMD) An accurate clock for displaying time (Hours/second) and date would be a nice creation. Added advantage would be to have it connected on the internet and splashes messages to it. A WIFI based solution would be much better for easy access to the home/network ecosystem Using an accurate RTC like DS3231 and Wifi chip ESP8266, a PCB was fabricated. Also there was a need to make a good case to host the electronics. Acrylic case making is cheaper as compared to 3d printing. Found an enterprising acrylic fabricator who made an amazing case.  The power supply was embedded in the back of the case so it could be directly plugged into the wall socket or the ESP8266's USB power connector provided for at the side of the casing. Uses the MajicDesigns MD_MAX72XX library from here  MajicDesigns MAX72XX library The fabricated DMC looks as follows: Mains Enabled Clock The DMC can be run off either AC mains or an extern...

Remote Control an Off-the-Shelf Digital Still camera

How to add Remote control (click/download) to an Off the Shelf Camera Digital Still Cameras (DSC) have good lenses and large image sensors. They take good pictures in varied lighting conditions There are many DSCs that are super cheap say like Rs 5000 to Rs 10000.  DSCs that provide WIFI and Remote Control option are also available, but they are expensive and of the range of Rs 20000 or more and also limited in exposing their APIs/control, etc. This was in 2019. Things might be different now. So modding/hacking a DSC to take pictures into its SD CARD and then download it remotely would be beneficial. This is simply done by using a servo as a picture taking plunger that is operated by an SBC say like an RPI and either by WIFI or via the internet, access a web server control mechanism that allows a remote user to click pictures or take videos. And then use a relay to switch the camera to download the pictures on the SD card and via the same web server mechanism enable pictures to be ...

TeleDrive an RC car from anywhere in the world

How to Teledrive a Modded car from anywhere in the World over the Internet  How to remotely drive a vehicle from anywhere in the world? Teledrive ie remote drive is a useful idea. One application: UAVs are flown around the world for surveillance while sitting in the comfort of a terrestrial ground station. Another example is to drive a Truck over the network like here:  Einride Remote Drive Prototype   Customising a commercial EV even though a very exciting exercise has its own challenges and timelines. Need to understand the mechanical angle and also the hardware angle, say identify relevant motors, torques and install and check they perform optimally. Will have to be iterated multiple times. A better option would be to try all the experiments on a small scale, say on a toy. Something similar to the Flight of Phoenix (2004)  movie. There have been many mods of expensive RC car like the Traxxas car.  Traxxas RC cars But these are expensive and hence a low cost s...

Low Cost ROS Bot

 How to build a Low Cost ROS Bot There was need to build a low cost ROS bot. ROS is the Robot Operating System, provides a platform to easily build bots. A Commonly available chassis was used and the relevant motor drivers, driver control hardware was integrated. Uses a Raspberry Pi inside. A custom ROS service was written for the motor control.  An unmaintained ROS app called ROSCONTROL was used to provide accelerometer values to wirelessly drive the BOT. It also provides a virtual joystick mode that can be used for BOT control. The Pi is the ROS master and the other slaves connect  over WIFI and enable control of the BOT. ROS is version 1. As the video shows, one can comfortably navigate the bot using the phone as input. It is indeed very satisfying to see the phone controlling a bot. The applications are endless.

How to run a common Motor as Generator

Power an Arduino board using a Motor as Generator Intent is to run an electronic device using Wind Energy. Use a common device as electricity generator. A motor can also function as a Generator. Brushed motor? Turning the motor spindle will generate some voltage at the  motor leads. So using a wind blower one can generate enough voltage to turn on an Arduino. The Generator inputs are given to the Vin pin and GND of a UNO board. Did not actually measure the voltages but the voltage regulator took care of powering the UNO, turning it on. If the voltages exceeded the rated limits maybe it would fry the board too. The UNO can be seen running the LED blinky program

Novel way of testing Ground Speed Radar for a Locomotive

A new way to test a Ground Speed Radar for a locomotive The diesel locomotives WDP*  and WDG* series are GM EMD Locomotives  These locomotives use a Doppler effect (Radar) based ground speed sensor. This Radar is used for wheel slip measurement, which means that the locomotive has lost traction and its wheels are hopelessly turning and hence not moving. The quick way of testing this radar is to hold a tuning fork of a certain frequency and depending on its resonant frequency the Radar senses the speed So ideally anything that resonates at a certain frequency can be used. A speaker also resonates at certain frequency. So if a sinusoidal wave is fed to the speaker diaphragm it would also resonate at its base frequency. Luckily got a speaker set and used an Android Tone generator app and below are the results. Basically a proof of concept of speed sensing based on frequency of tone. 2 videos below demonstrate the speed sensor sensing different frequencies based on tone. The pista...