Archive

Posts Tagged ‘code’

Measure Distance using Ultrasonic Sensor HC – SR04 | Pi4J | JAVA | Raspberry Pi

January 16th, 2017 No comments

HC - SR04This is a simple tutorial showing how to interface HC – SR04  ultrasonic ranging module with Raspberry Pi to measure distance using JAVA. Ultrasonic ranging module HC – SR04 provides 2cm – 400cm non-contact measurement function, the ranging accuracy can reach to 3mm. The modules include ultrasonic transmitters, receiver and control circuit. The basic principle of work:

(1) Using IO trigger for at least 10us high-level signal,
(2) The Module automatically sends eight 40 kHz and detect whether there is a
pulse signal back.
(3) IF the signal back, through high level, time of high output IO duration is the time from sending ultrasonic to returning.
Read more…

Send/Receive data using BLE and MBED | BBC Microbit

December 16th, 2016 No comments

BLE

This video is all about sending and receiving data between BBC Microbit and any BLE enabled smart phone. Over here I have used C/C++ (MBED) as the programming language as other language (Python/JavaScript) don’t support UART data transfer service.

Read more…

Getting Started with Smallest Arduino | Digispark AtTiny85

September 22nd, 2016 No comments

The Digispark is an Attiny85 based microcontroller development board similar to the Arduino line, only cheaper, smaller, and a bit less powerful. With a whole host of shields to extend its functionality and the ability to use the familiar Arduino IDE the Digispark is a great way to jump into electronics, or perfect for when an Arduino is too big or too much.

Specs:
Support for the Arduino IDE 1.0+ (OSX/Win/Linux)
Power via USB or External Source – 5v or 7-35v (12v or less recommended, automatic selection)
On-board 500ma 5V Regulator
Built-in USB
6 I/O Pins (2 are used for USB only if your program actively communicates over USB, otherwise you can use all                                    6 even if you are programming via USB)
8k Flash Memory (about 6k after bootloader)
I2C and SPI (vis USI)
PWM on 3 pins (more possible with Software PWM)
ADC on 4 pins
Power LED and Test/Status LED

In this video you will find a detailed description of the smallest Arduino compatible board like how to configure your Arduino IDE in order to program this board.

Links :
Drivers : goo.gl/wvoxcW
Board URL : digistump.com/package_digistum…
Buy : goo.gl/5UNrH6

********************************************************************

Subscribe YouTube : goo.gl/FhfdL7

Website : www.weargenius.in

Twitter : twitter.com/geekybikash

YouTube : www.youtube.com/weargenius

Instagram : www.instagram.com/weargenius/

GIT : github.com/oksbwn