Posts

Showing posts from March 25, 2018

Lego animals

Image
Just a fun project where we me and my brother built some animals with legos. We stopped by lego store and got some eye pieces sleepy eyes and droopy eyes and stuff. We had some poly bag lego animals and so used those too.

Tachometer - LDR Rotation Sensing

Image
Tachometer - LDR and Microbit Purpose : To build a tachometer (not the one to measure how much tacos can you eat) but the one to measure RPM, speed of rotating objects like wheel, turbine etc., Hypothesis: Most of the commercial tachometers work with light and we are planning to use LDR to track light and calculate the RPM and using microbit to read, measure, calculate and display the results. Materials needed: LDR Microbit Resistor - 10k cables/ wires to connect I used lego 42020 helicopter but you can use anything. Procedure: Tricking out lego : why? 1. Increase width of the blades: If the blade width is too small it makes it difficult for the LDR to read so we are going to swap the blades of this lego set with that of Batman helicopter ones. 2. Use two pieces technic T-beams and one cross block piece to hold the LDR. Connect the LDR to the microbit and resistor circuit. Circuit:   You can use this to find the RPM of ANYTHI...

Distance Sensor Microbit

Image
Distance sensor - Microbit  Purpose: This program measures 1 inch of from distance sensor and is not entirely accurate and when it is 2 cm 5 cm or 10 cm it preforms a Pokemon move. Materials needed: This project uses the BBC Microbit, Microbit Programming interface,Breadboard,Breadboard connector + Pin setup,5 VT battery,Connection wires, and the Microbit distance sensor. Procedure: Set up the circuit, Write the code, Download to Microbit,Run.` Circuit: ` THE BLACK WIRE IS CONNECTED TO A 5 V BATTERY Code Snippet: --------------------- Java code snippet The code is in JavaScript Microbit Code let Distance4 = 0 let Distance3 = 0 let Distance2 = 0 let Distance = 0 let echoTime = 0 basic.forever(() => {     echoTime = 0     // echoTime = sonar.ping( DigitalPin.P0,     // DigitalPin.P1, PingUnit.Centimeters ) send pulse     pins.digitalWritePin(DigitalPin.P0, 0)     c...