Obstacle Avoiding robot using Arduino and Ultrasound sensor. A basic robot algorithm that uses the Ultrasound sensor mounted on a servo motor to scan for obstacles ahead. Download full code here.
Retrieving data from social networks is increasingly becoming popular for various purposes. Some applications may be doing it for authenticating and authorising users to their own web based applications. Some others may be looking for validating/verifying people related data. Whatever may be the purpose, connecting to social media requires your application to adhere to certain authentication and authorisation mechanisms. Your application can be a web based one or a script written in any scripting language. Here, I am using python. Without much ado, let’s have a look at how you can run a…continue reading →
This note explains the concept of using IOT for home automation. The below diagram shows how home appliances are controlled using a web based control panel. There are three lights(LEDs), one fan and a temperature sensor in the model house. Lights and fan are driven by relay modules. Relays are driven by NodeMCU (ESP8266 based IOT module). The temperature sensor is connected to the nodeMCU directly. We have an IOT server, running MQTT broker and also the web based control panel. Using the control panel buttons, the user can turn on/turn off lights…continue reading →
This time, I have made a calculator with the TFT display and Arduino. This note describes the steps I followed. Required Materials Hardware Arduino board (I've used UNO) TFT Touchscreen display (Must be compatible with Adafruit TFTLCD library) Software Arduino IDE The TFT To know more about how to program a TFT display for Arduino, you may read this note. Calculator Display and Logic Draw buttons for digits and operators and the display field of the calculator. All digits and operator buttons have the same size. So, the co-ordinates of each button can…continue reading →
Python has quite a few built-in data structures. Lists Tuples Dictionaries Strings Sets Frozensets Among these, I am going to start with lists. A list keeps the order of objects stored in it. So does tuples and strings. Hence, these are also called sequence types in general. A list is mutable - meaning we can add, delete or modify its elements. >>> vehicle=['car','bus','truck','van'] >>> print(vehicle) ['car', 'bus', 'truck', 'van'] >>> print(vehicle) car >>> print(vehicle) van How to add a new element to an existing list ? Use append method to add an element…continue reading →
I have been planning to start learning analytics for sometime now. Every time I think I'll start, something more urgent will pop up. But today I got a bit of time and so I built a fresh environment for learning purposes. Here's what I did. Created a new virtual machine using VirtualBox(opensource virtualization platform from Oracle). Having a virtual machine helps in multiple ways. My work related stuff is not affected in any way by new applications that I install for learning purposes. If something crashes, I can discard the VM and create…continue reading →
In this note, let's see how to connect a relay module to a NodeMCU board. We use a relay module when we have to drive devices that use more current than NodeMCU board can supply. Here's a list of things needed: Hardware NodeMCU v1.0 or v0.9 Relay module - I used a 5V DC 4 channel relay module Some jumper wires Software Arduino IDE (arduino.cc/Downloads) Arduino ESP8266-core (Steps for installation can be found in my other blog. Link Here) Step 1: How does the relay module work? The relay module is an electrical…continue reading →
Problems Set 2 - Solving Laplace's Equation using Finite Difference Method
Solved Problems - Set 1 - Solving Laplace's Equation using Finite Difference Method
KTU: ME305: COMPUTER PROGRAMMING & NUMERICAL METHODS |Module: VI: Solution of Partial Differential Equations: Laplace equation, Finite Difference Method.|Standard diagonal five point formula and the need for iterative methods. Read more...