Princejude's Posts
Nairaland Forum › Princejude's Profile › Princejude's Posts
1 2 3 4 5 6 7 8 9 10 (of 20 pages)
4) Scroll down, select the ESP8266 board menu and Install "esp8266 by ESP8266 Community"
|
3) Go to Tools > Board > Boards Manager…
|
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
|
Code
|
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
|
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
|
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:
|
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).
|
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.
|
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:
|
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.
|
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.
|
Voiz234:You will learn a lot from this thread, just keep following the thread. |
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 |
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
|
okeyfineboy:hardare programmer... |
Yes, get ready. i am about to make this lively.. |
ThatErha: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 |
In naija ![]() |
It is called Kiacoke... |
Chubhie:N2.00 |
Fulani herdsmen again... are they untouchable? |
bastard na konji |
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" .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" .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. |
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: |
rhothymie:Welcome on-board |
If you are interested in learning arduino programming, then this thread is for you. |
http://www.dailymail.co.uk/health/article-5159359/Mermaid-baby-tragically-died-just-four-hours-later.html Read from the link above, I can't. copy & paste from the page |
manmidtexy: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. |
Jean2:For plastic type use 3d printer |
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 to be contd... http://www.instructables.com/id/Raspberry-Pi-and-Arduino-Laptop/?utm_source=newsletter&utm_medium=email |
;