Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,194,337 members, 7,954,386 topics. Date: Friday, 20 September 2024 at 05:55 PM

Princejude's Posts

Nairaland Forum / Princejude's Profile / Princejude's Posts

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

Programming / Re: IoT (internet Of Things) With ESP8266 by princejude(m): 12:03pm On Nov 16, 2018
We are rolling out state-of-the-art Embedded system designs Courses...

Programming / Re: Free Arduino Tutorial by princejude(m): 11:59am On Nov 16, 2018
We are rolling out state-of-the-art Embedded system designs Courses...

Programming / Re: Free Arduino Tutorial by princejude(m): 4:40am On Nov 13, 2018
DHT11 Pins Connection:

Pin 1 >>> VCC (3V to 5V)
Pin 2 >>> Data OUT
Pin 3 >>> Don’t connect
Pin 4 >>> GND

Source code
We will use a DHT sensor Library for this project:

Installing the DHT sensor library
1. Download the adafruit DHT Sensor library from here: https://github.com/adafruit/DHT-sensor-library. You should have a .zip folder in your Downloads folder
2. Unzip the .zip folder and you should get DHT-sensor-library-master folder
3. Rename your folder from DHT-sensor-library-master to DHT_sensor_library (you really need to replace those "-" with "_"wink
4. Move the DHT_sensor_library folder to your Arduino IDE installation
libraries folder
5. Re-open your Arduino IDE
6. Go to Files / Examples / DHT_SENSOR_LIB / DHT Tester
Upload the code
Programming / Re: Free Arduino Tutorial by princejude(m): 2:26pm On Nov 07, 2018
DHT11 & DHT22 Temperature and Humidity Sensor with Arduino
The DHT sensors are inexpensive sensors for measuring temperature and humidity. These sensors contain a chip that does analog to digital conversion and spits out a digital signal with the temperature and humidity.
These signals are easy to read with any microcontroller (MCU).

Specifications for DHT11 and DHT22
There are two versions of the DHT sensor.

DHT11

Range: 20-90%
Absolute accuracy: ±5%
Repeatability: ±1%
Long term stability: ±1% per year

DHT22

Range: 0-100%
Absolute accuracy: ±2%
Repeatability: ±1%
Long term stability: ±0.5% per year

As you can see from the specs above, the DHT22 is a bit more accurate.

Programming / Re: Free Arduino Tutorial by princejude(m): 11:30am On Oct 26, 2018
princefemo01:




please I need your help on a particular code that has ultrasonic sensor features in it but its not working to to expected performance.....please can I get your whatsapp number?

Whatsapp no. 08030674883

http://www.jutronix.com/contact-us
Programming / Re: Free Arduino Tutorial by princejude(m): 12:47pm On Oct 25, 2018
brisstone:
Please who have an idea where I can learn Arduino programming in Ilorin, Kwara state.?

Contact us we can help you...
Programming / Re: IoT (internet Of Things) With ESP8266 by princejude(m): 2:21pm On Oct 24, 2018
Here’s the connections:

RX -> TX
TX -> RX
CH_PD -> 3.3V
GPIO 0 -> GND
VCC -> 3.3V
GND -> GND

Note: the circuit above has GPIO 0 connected to GND, that’s because we want to upload code. When you upload a new sketch into your ESP it requires the ESP to flash a new firmware. In normal usage (if you’re not flashing your ESP with a new firmware) it would be connected to VCC.
If you have a brand new FTDI Programmer and you need to install the FTDI drivers on Windows PC, visit this website for the official drivers:
http://www.ftdichip.com/Drivers/VCP.htm
Programming / Re: IoT (internet Of Things) With ESP8266 by princejude(m): 2:01pm On Oct 24, 2018
Follow the circuit in the figure below to connect your ESP to your FTDI Programmer to establish a serial communication.

Programming / Re: IoT (internet Of Things) With ESP8266 by princejude(m): 1:54pm On Oct 24, 2018
Important: most FTDI Programmers have a jumper to convert from 5V to 3.3V. Make sure your FTDI Programmer is set to 3.3V operation (as shown in the following figure).

Programming / Re: IoT (internet Of Things) With ESP8266 by princejude(m): 1:34pm On Oct 24, 2018
Option B - Uploading code to ESP-01
Uploading code to the ESP-01 requires establishing a serial communication between your ESP8266 and a FTDI Programmer.

Programming / Re: IoT (internet Of Things) With ESP8266 by princejude(m): 2:46am On Oct 20, 2018
Uploading Code to ESP8266
There are two different ways to upload code to your ESP8266. If you’re using an ESP-12E that has built-in programmer read Option A.
If you’re using the ESP-01, you need an FTDI programmer - read Option B.

Option A - Uploading code to ESP-12E
Upload code to your ESP-12E NodeMCU Kit is very simple, since it has builtin
programmer. You plug your board to your computer and you don’t need to make any additional connections.

Look at the Tools menu, select Board “NodeMCU 1.0 (ESP-12E Module)”

Programming / Re: IoT (internet Of Things) With ESP8266 by princejude(m): 1:35am On Oct 20, 2018
Writing Your Arduino Sketch
The sketch for blinking an LED is very simple.
int pin = 5;

void setup() {
// initialize GPIO 5 as an output.
pinMode(pin, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
digitalWrite(pin, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(pin, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
Programming / Re: IoT (internet Of Things) With ESP8266 by princejude(m): 1:31am On Oct 20, 2018
Important: in the next section called “Writing Your Arduino Sketch” when we
define:
pin = 0
we are referring to GPIO 0, and if we define:
pin = 5
we are referring to GPIO 5 which is connected to pin D1.

This is how this firmware is internally defined. You don’t need to worry about this, simply remember that 0 refers to GPIO 0 and 5 refers to GPIO 5
Programming / Re: IoT (internet Of Things) With ESP8266 by princejude(m): 1:27am On Oct 20, 2018
About GPIOs Assignment
Use the next table as a quick reference on how to assign the ESP8266 GPIOs in the Arduino code.

Programming / Re: IoT (internet Of Things) With ESP8266 by princejude(m): 1:22am On Oct 20, 2018
Blinking LED with Arduino IDE
In this Unit you’re going to design a simple circuit to blink an LED with the ESP using Arduino IDE.
Why do we always blink an LED first? That’s a great question! If you can blink an LED you can pretty much say that you can turn any electronic device on or off. Whether is an LED, a lamp or your fan.

Programming / Re: Free Arduino Tutorial by princejude(m): 2:32am On Oct 18, 2018
EngrBouss:
Do one with omron d6t interfacing with processing software
Programming / Re: IoT (internet Of Things) With ESP8266 by princejude(m): 2:08am On Oct 17, 2018
7) Finally, re-open your Arduino IDE to ensure that it launches with the new boards installed
Programming / Re: IoT (internet Of Things) With ESP8266 by princejude(m): 2:06am On Oct 17, 2018
5) Open the Arduino Tools menu
6) Select Board > NodeMCU 1.0 (ESP-12E Module)

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

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

Programming / Re: IoT (internet Of Things) With ESP8266 by princejude(m): 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

Programming / Re: Free Arduino Tutorial by princejude(m): 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);
}
Programming / Re: Free Arduino Tutorial by princejude(m): 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

Programming / Re: Free Arduino Tutorial by princejude(m): 12:49am On Oct 17, 2018
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

Programming / Re: IoT (internet Of Things) With ESP8266 by princejude(m): 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:

Programming / Re: IoT (internet Of Things) With ESP8266 by princejude(m): 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).

Programming / Re: IoT (internet Of Things) With ESP8266 by princejude(m): 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.

Programming / Re: IoT (internet Of Things) With ESP8266 by princejude(m): 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:

Programming / Re: IoT (internet Of Things) With ESP8266 by princejude(m): 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.

Programming / Re: IoT (internet Of Things) With ESP8266 by princejude(m): 2:43pm On Oct 15, 2018
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.

Programming / Re: IoT (internet Of Things) With ESP8266 by princejude(m): 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.
Programming / IoT (internet Of Things) With ESP8266 by princejude(m): 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

1 Like

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

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 36
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.