₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,331,010 members, 8,448,224 topics. Date: Monday, 20 July 2026 at 01:49 AM

Toggle theme

Princejude's Posts

Nairaland ForumPrincejude's ProfilePrincejude's Posts

1 2 3 4 5 6 7 8 9 10 (of 20 pages)

ProgrammingRe: IoT (internet Of Things) With ESP8266 by princejude(op): 2:04am On Oct 17, 2018
4) Scroll down, select the ESP8266 board menu and Install "esp8266 by ESP8266 Community"

ProgrammingRe: IoT (internet Of Things) With ESP8266 by princejude(op): 1:59am On Oct 17, 2018
3) Go to Tools > Board > Boards Manager…

ProgrammingRe: IoT (internet Of Things) With ESP8266 by princejude(op): 1:54am On Oct 17, 2018
Installing ESP8266 Board
To install the ESP8266 board in your Arduino IDE, follow these next instructions:
1) Open the preferences window from the Arduino IDE. Go to File >
Preferences
2) Enter http://arduino.esp8266.com/stable/package_esp8266com_index.json
into Additional Board Manager URLs field and press the “OK”
button

ProgrammingRe: Free Arduino Tutorial by princejude(op): 1:35am On Oct 17, 2018
Code


/*
* Ultrasonic Sensor HC-SR04 code
*
Ultrasonic sensor Pins:
VCC: +5VDC
Trig : Trigger (INPUT) - Pin 7
Echo: Echo (OUTPUT) - Pin 8
GND: GND
*/

int trigPin = 7; // Trigger
int echoPin = 8; // Echo
long duration, cm, inches;

void setup() {
//Serial Port begin
Serial.begin (9600);
//Define inputs and outputs
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
}

void loop() {
// The sensor is triggered by a HIGH pulse of 10 or more microseconds.
// Give a short LOW pulse beforehand to ensure a clean HIGH pulse:
digitalWrite(trigPin, LOW);
delayMicroseconds(5);
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);

// Read the signal from the sensor: a HIGH pulse whose
// duration is the time (in microseconds) from the sending
// of the ping to the reception of its echo off of an object.
pinMode(echoPin, INPUT);
duration = pulseIn(echoPin, HIGH);

// Convert the time into a distance
cm = (duration/2) / 29.1; // Divide by 29.1 or multiply by 0.0343
inches = (duration/2) / 74; // Divide by 74 or multiply by 0.0135

Serial.print(inches);
Serial.print("in, "wink;
Serial.print(cm);
Serial.print("cm"wink;
Serial.println();

delay(250);
}
ProgrammingRe: Free Arduino Tutorial by princejude(op): 1:27am On Oct 17, 2018
Arduino Uno and HC-SR04 Ultrasonic sensor circuit

Ultrasonic Trig Pin connected to D7, Echo Pin to D8 then GND to GND and VCC to VCC

ProgrammingRe: Free Arduino Tutorial by princejude(op):
How Does it Work?
The ultrasonic sensor uses sonar to determine the distance to an object. Here’s what happens:
1. The transmitter (trig pin) sends a signal: a high-frequency sound.
2. When the signal finds an object, it is reflected and…
3. … the receiver (echo pin) receives it.

The time between the transmission and reception of the signal allows us to know the distance to an object. This is possible because we know the sound’s velocity in the air.

Arduino with HC – SR04 Sensor

This sensor is really cool and popular among the Arduino tinkerers. So, here we provide an example on how to use the HC-SR04 ultrasonic sensor with the Arduino. In this project the ultrasonic sensor reads and writes the distance to an object in the serial monitor.
The goal of this project is to help you understand how this sensor works. Then, you can use this example in your own projects.

Parts Required

• Arduino UNO http://www.jutronix.com/shop/arduino-uno
• Ultrasonic Sensor (HC-SR04) http://www.jutronix.com/shop/hc-sr04-ultrasonic-sensor
• Breadboard http://www.jutronix.com/shop/mini-breadboard
• Jumper wires http://www.jutronix.com/shop/arduino-jumper-wire

ProgrammingRe: IoT (internet Of Things) With ESP8266 by princejude(op): 4:02pm On Oct 15, 2018
Installing Arduino IDE
Grab the folder you’ve just downloaded named “arduino-(...).zip” and unzip it. Run the highlighted file and follow the installation wizard that shows on your screen. Open the Arduino IDE application file (see figure below).
When the Arduino IDE first opens, this is what you should see:

ProgrammingRe: IoT (internet Of Things) With ESP8266 by princejude(op): 3:46pm On Oct 15, 2018
ESP8266 with Arduino IDE
In this section you’re going to download, install and prepare your Arduino IDE to work with the ESP8266. This means you can program your ESP using the friendly Arduino programming language.

What’s the Arduino IDE?
The Arduino IDE is an open-source software that makes it easy to write code and upload it to the Arduino board. This GitHub repository added support for the ESP board to integrate with the Arduino IDE. The Arduino IDE is a multiplatform software, which means that it runs on
Windows, Mac OS X or Linux (it was created in JAVA).

Requirements
You need to have JAVA installed in your computer. If you don’t have, go to this website: http://java.com/download, download and install the latest version.

Downloading Arduino IDE
To download the Arduino IDE, visit the following URL: https://www.arduino.cc/en/Main/Software.
Then, select your operating system and download the software (as shown below).

ProgrammingRe: IoT (internet Of Things) With ESP8266 by princejude(op): 3:14pm On Oct 15, 2018
ESP-01 Pinout
If your project requires very little pins to work with, you might also consider using the ESP-01. Here’s a quick overview of ESP-01 pinout:

Warning: before applying power to your module, please note that this module operates at 3.3V. If you plug it to 5V, it will fry pop corn for you.

ProgrammingRe: IoT (internet Of Things) With ESP8266 by princejude(op): 3:11pm On Oct 15, 2018
ESP-12E NodeMCU Pinout
Throughout this tutorial, we’ll be using mainly the ESP8266-12E NodeMCU Kit. Here’s a quick overview of the ESP-12E NodeMCU Kit pinout:

ProgrammingRe: IoT (internet Of Things) With ESP8266 by princejude(op): 3:02pm On Oct 15, 2018
I highly recommend using the ESP8266-12E NodeMCU, the one that has built-in programmer. The built-in programmer makes it easy to prototype and upload your programs.

ProgrammingRe: IoT (internet Of Things) With ESP8266 by princejude(op):
Different ESP8266 Modules

The ESP8266 comes in a wide variety of versions (as shown in the figure below). The ESP-12E or often called ESP-12E NodeMCU Kit is currently the most practical version and that’s the module we’ll be using most throughout this tutorial.

ProgrammingRe: IoT (internet Of Things) With ESP8266 by princejude(op): 2:30pm On Oct 15, 2018
Voiz234:
Will like to learn about this, any link or contact?
You will learn a lot from this thread, just keep following the thread.
ProgrammingIoT (internet Of Things) With ESP8266 by princejude(op): 2:21pm On Oct 15, 2018
This tutorial is a step-by-step guide designed to help you get started with this amazing Wi-Fi module called ESP8266 and build projects that can be used to automate your home.

This tutorial covers:
• Technical specifications of the ESP8266
• Different ESP8266 modules
• How to install the Arduino IDE and how it works
• How to establish a serial communication with the ESP8266
• How to blink an LED with ESP8266
• How to interact with the ESP8266 GPIOs
• How to create a web server
• How to access your web server from anywhere in the world
• How to send emails with the ESP8266
• How to create an email notifier.
• And a lot more…

What is ESP8266?

The ESP8266 is a Wi-Fi module with an ARM processor that is great to extend the functionality of a microcontroller such as an Arduino.
It can communicate with your microcontroller via serial. This tutorial was designed to take the most of your ESP8266, so you
don’t even need an Arduino board. You just need an ESP and a few components!
So, what can you do with this low-cost module? You can create a web server, send HTTP requests, control outputs, read inputs and interrupts, send emails, post tweets, etc.

ESP8266 specifications

• 802.11 b/g/n protocol
• Wi-Fi Direct (P2P), soft-AP
• Integrated TCP/IP protocol stack
• Built-in low-power 32-bit CPU
• SDIO 2.0, SPI, UART
ProgrammingRe: Free Arduino Tutorial by princejude(op):
Topic 1: The (HC-SR04) Ultrasonic sensor

Description
The HC-SR04 ultrasonic sensor uses sonar (high-frequency inaudible sound) to determine distance to an object like bats do. It offers excellent non-contact range detection with high accuracy and stable readings in an easy-to-use package.
From 2cm to 400 cm or 1” to 13 feet. Its operation is not affected by sunlight or black material like sharp rangefinders are (although acoustically soft materials like cloth can be difficult to detect). It comes complete with ultrasonic transmitter and receiver module.

Features

• Power Supply :+5V DC
• Quiescent Current : <2mA
• Working Current: 15mA
• Effectual Angle: <15°
• Ranging Distance : 2cm – 400 cm/1″ – 13ft
• Resolution : 0.3 cm
• Measuring Angle: 30 degree
• Trigger Input Pulse width: 10uS
• Dimension: 45mm x 20mm x 15mm

ProgrammingRe: Good Programmer That Stays In Abuja by princejude(m): 10:43pm On Sep 22, 2018
okeyfineboy:
PLEASE IF YOU ARE A GOOD PROGRAMMER AND U STAY IN ABUJA CONTACT ME OR DROP YOUR CONTACT
hardare programmer...
ProgrammingRe: Free Arduino Tutorial by princejude(op): 10:36pm On Sep 22, 2018
Yes, get ready. i am about to make this lively..
Science/TechnologyRe: Electronics Circuit Design From Concept To Implementation by princejude(m): 10:30pm On Sep 22, 2018
ThatErha:
Nice one guys.

Interesting thread .
You are welcome.

to learn more follow this thread because i am about to update it with new topics on arduino and raspberry...
https://www.nairaland.com/4338684/free-arduino-tutorial
EducationRe: JAMB Plans For Candidates To Do Future UTME At Home by princejude(m): 9:05am On Mar 13, 2018
In naija huh
FoodRe: Coca-cola Plans To Launch Its First Alcoholic Drink by princejude(m): 10:18am On Mar 09, 2018
It is called Kiacoke...
CrimeRe: Many Killed In Kasuwan Magani, Kaduna As Mayhem Breaks Out (Disturbing Photos) by princejude(m): 3:35am On Feb 27, 2018
Chubhie:
How much is human life worth in Nigeria?
N2.00
CrimeRe: Fulani Herdsmen Kill Man In His Farm In Oyo (Graphic Photos) by princejude(m): 9:06pm On Feb 11, 2018
Fulani herdsmen again... are they untouchable?
CelebritiesRe: Timaya Holds The Bum Of A Female Statue (Photo) by princejude(m): 6:09pm On Feb 11, 2018
bastard na konji
ProgrammingRe: Free Arduino Tutorial by princejude(op):
Commonly used C sketch functions

pinMode(PIN-NUMBER,I/O-MODE)
This function is used to specify whether a particular Arduino pin will be used in Input or Output mode.

digitalRead(PIN-NUMBER)
This function is used to read digital input from a digital pin. The input value is either LOW or HIGH and can be stored in a Boolean type variable.

digitalWrite(PIN-NUMBER,SIGNAL-LEVEL)
Use this function to send a digital LOW or HIGH signal on a particular pin.

analogRead(PIN-NUMBER)
This function is used to read analog input from analog pins. The input value can be stored in an integer type variable.

analogWrite(PIN-NUMBER,SIGNAL-VALUE)
Use this function to send an analog signal on a particular pin. The signal value can be specified as an integer between 0 and 1023.

delay(MILLI-SECONDS)
This function is used for halting the program execution for the specified number of milliseconds.

delayMicroseconds(MICROSECONDS)
This function can be used to halt the program execution for the specified number of microseconds.

Serial.begin(BAUD-RATE)
This function sets the baud rate for communication between the Arduino board and Arduino IDE's Serial Monitor window (also with any serial port communication program)

Serial.println("MESSAGE"wink.
This method is used to output a string message to the Serial Monitor. It results in printing each message in a separate line.

Serial.print("MESSAGE"wink.
This method is used to output a string message to the Serial Monitor. All messages sent are printed one after the other on the same line.

isnan(VALUE)
This in-built function is used to determine whether a specified value is a number or not.

tone(PIN-NUMBERFREQUENCY, MILLI-SECONDS)
Use this function to play a sound of a particular frequency on a buzzer connected to a particular pin.

pulseIn(PIN-NUMBER,LOGIC-LEVEL)
Use this function to read and measure the duration of an input signal on a particular pin. Based on the logic level specified as a parameter to the function, it will wait for and read the signal until its logic level changes. For example, when reading a HIGH signal, it waits for a HIGH input signal and measures the duration until the signal level changes to LOW.

millis()
This function returns the number of milliseconds since the Arduino board was powered on and the program started running.
ProgrammingRe: Free Arduino Tutorial by princejude(op): 1:30pm On Feb 09, 2018
Introduction to the Arduino platform

The Arduino platform is a hardware board that offers a hardware-software
integrated creative device development platform. The Arduino boards can be
interfaced with openly available peripheral devices and custom programs can
be written and loaded (embedded) into the Arduino development board:
ProgrammingRe: Free Arduino Tutorial by princejude(op): 1:19pm On Feb 09, 2018
rhothymie:
following
Welcome on-board
ProgrammingFree Arduino Tutorial by princejude(op): 1:12pm On Feb 09, 2018
If you are interested in learning arduino programming, then this thread is for you.
FamilyRe: Mernaid Baby - A Mum Gaves Birth To A "Mernaid Baby" (PHOTO) by princejude(op): 10:48pm On Dec 10, 2017
FamilyMernaid Baby - A Mum Gaves Birth To A "Mernaid Baby" (PHOTO) by princejude(op): 10:44pm On Dec 10, 2017
ProgrammingRe: Want To Program PIC Microcontroller In Assembly Language?[enter HERE] by princejude(m): 4:08pm On Dec 03, 2017
manmidtexy:
Hi,

I have PIC16F72-IASP and PIC16F73-IASP to program.

How much will it cost and i want to learn more on embedded system programing using Arduino.
If you have the chips, you only need the programmer to program them. The programmer may cost you between #5000 and #8000 depending on the type and your source.
Science/TechnologyRe: Electronics Circuit Design From Concept To Implementation by princejude(m): 3:58pm On Nov 30, 2017
Jean2:
How do one make good quality casing? Plastic type, metal type?
For plastic type use 3d printer
ProgrammingBuild Your Own Laptop by princejude(op): 11:05pm On Nov 12, 2017
https://i66.tinypic.com/2u621c6.png

Since the day I heard about and got to play with the Raspberry Pi one a few years ago I've wanted to make a Raspberry Pi powered laptop out of it and now with the rease of the Raspberry Pi three I've decided to finally see it through. Now this isn't my first time attempting to make a fully working laptop using a Raspberry Pi, every other time I've tried the project has been riddled with errors with anything from broken ribbon cables to figuring out the hinge mechanism however I've been able to learn from these failures and I hope to show you how to avoid them when making your own. So lets get started!

Step 1: What Do We Want It to Do

Before we can start choosing and buying the parts we are going to be using we need to figure out everything we want our laptop to be able to do, for example I want my laptop to have:

integrated mouse (trackpad)
long battery life
at least 2 USB ports
full keyboard
integrated Arduino powered battery reader
integrated Arduino with headers for plugging components into
small form factor


Since we are using the Pi 3 we dont have to worry about buying a Wifi or Bluetooth dongle because it has it all integrated. Now this list is by no means exclusive, there are many other things that can be added to make this a better laptop however I think the features im adding will give it some awesome usability such as the integrated Arduino powered battery reader which will be a small OLED screen next to the main screen which will permanently show the battery percent and voltage, another feature I really like is the integrated Arduino with headers, this is basically an Arduino with male headers soldered to it, there are small holes cut in the case that allow the user to access the male pins and plug in components, so all this really is just an Arduino built into the laptop so we always have an Arduino handy.

Step 2: Parts

For this project we will need quite a lot of parts, we will need:

x1 Raspberry Pi 3 (Here)
x2 Arduino Micro (Here)
x1 Seven inch Raspberry PI screen (Here)
x3 Lithium 18650 Batteries (Here)
x1 Powerbank circuit (Here)
x1 USB hub (Here)
x1 Mini USB keyboard (Here)
x1 Male USB (Here)
x1 SPI OLED (Here)
Reinforced cardboard


We are also going to need the trackpad we made in a previous project, you can find the full tutorial here . Once again this is by no means an exclusive list, whats nice about these parts is that the majority arent dependent on each other so you can swap parts for whatever you want. We have alot of parts to setup so to make it easier we are going to set them up individually and then at the end we can put them all together.

Step 3: Setting Up the Pi and Screen
Lets start with our PI and screen, our screen doesn't connect to our Pi through the HDMI port but rather through a 50 pin ribbon cable that plugs into the Pis GPIO however if you just plug it in and start up the Pi it won't work, we need to edit some lines of code in the startup file for the Pi.

We start this by downloading a fresh Raspbian image Here , then we write it to our SD card using 7Zip (or whatever software works for you). Now once its written we need to open a file on the SD card called config.txt and add some code. What this code does is tell the Pi to send the screen data through the GPIO headers rather than the HDMI port (HDMI is the default) on startup. Putting the code in is really easy. Open the config.txt with a notepad program, for windows i'm using notepad ++, and copy this code into the config.txt file now save and close and it should work once the SD card is plugged back into the Pi. If it looks too bright or too dim turn the little petentiomoter on the screen circuit board until it looks right.

Our Pi also needs to physical modification to fit inside our case properly we are going to have to desolder one of the duel usb ports, this is done by putting a fairly large amount of solder on the pins of the USB connector and slowly rocking it back and forth until it becomes free. We do this because we need to solder a usb hub to the Pi to plug in all of our input devices.

The code:

<p>dtoverlay=dpi24<br>enable_dpi_lcd=1
display_default_lcd=1
dpi_group=2
dpi_mode=87
dpi_output_format=0x6f005
hdmi_cvt 1024 600 60 6 0 0 0</p>


to be contd...

http://www.instructables.com/id/Raspberry-Pi-and-Arduino-Laptop/?utm_source=newsletter&utm_medium=email

1 2 3 4 5 6 7 8 9 10 (of 20 pages)