Tag Archives: using

Using Custom EV3-G MyBlock Icons Images

PDF24    Send article as PDF   

Introduction

In this tutorial, I will show you how to make custom MyBlock Icons, and MyBlock Parameter Icons. This is very useful because the MyBlock icons allow one to easily recognize in your programs. The tutorial is broken into two parts, MyBlock Icons, and Parameter Icons. You can only use this tutorial with the EV3-G software. The programs only display properly when you install your custom icons in the appropriate directory on your computer.

Before we begin, make a copy of the following directory: “..\LEGO MINDSTORMS Edu EV3\Resources\MyBlocks\images.

Using the TCS230/TCS3200 Color Sensor with an Arduino

TCS3200 Color Sensor Module
www.pdf24.org    Send article as PDF   

In this article I will endeavour to show how to detect colours with an Arduino connected to the TCS230/TCS3200 colour sensor.

The TCS3200 colour sensor can detect a wide variety of colours based on their wavelength. This sensor is specially useful for colour recognition projects such as colour matching, colour sorting, test strip reading and much more.

LEGO Mindstorms EV3 Ball Chasing Robot using the PixyCAM

PixyCAM Follow the Ball
en.pdf24.org    Send article as PDF   
This article aims to describe how to programme a LEGO Mindstorms EV3 robot that chases things, like a ball in this example. It’s the same robot and program that’s used in the PixyCAM Video below. This robot and program is a good launching point for other projects, and it’s a good introduction to PID control, which is used throughout robotics and engineering in general.

Guide to using the PixyCAM Camera’s EV3-G Blocks

PDF24    Send article as PDF   
In this article, I attempt to describe the LEGO PixyCAM block, which is used in conjunction with the LEGO Mindstorms EV3 Software. Check out the “Getting Started with the LEGO Mindstorms & the PixyCAM” Article for information on how to install the PixyCAM modules (Blocks) into Mindstorms EV3-G Software.

Connecting the PixyCAM to LEGO Mindstorms using I2C

PDF24    Send article as PDF   
In order to use the PixyCAM with the LEGO Mindstorms EV3 or NXT kit, you will need an I2C Adapter Cable. You can order a cable through some PixyCAM distributors, including the Robotshop. The PixyCAM for LEGO Mindstorms comes with a special Pixy-to-Mindstorms Cable, and is preloaded with a version of the firmware that speaks with the LEGO protocol by default. If you have Pixy for LEGO, just to the PixyMon Settings section below.

Using the ‘Google Cloud Vision API’ with your Raspberry Pi

www.pdf24.org    Send article as PDF   

What is the ‘Google Cloud Vision API’?

Google Cloud Vision API enables your robot to understand the content of an image by encapsulating powerful machine learning models in an easy to use REST API. It quickly classifies images into thousands of categories such as “robot”, “elephant”, “flower”. It detects individual objects and faces within images. It capable of finding and reading printed words contained within images, and even determines the language it is written in. You can use it to build metadata for your image collection, and can be used to moderate offensive content through image analysis.
The Vision API enables you to detect different types of inappropriate content from adult to violent content. It analyzes images uploaded by the request, or integrate with your image storage on Google Cloud Storage.

Using WS2812B Addressable RGB LED Strips with Arduinos

WS2812B LED Strip
en.pdf24.org    Send article as PDF   
This article is about my experiments with the WS2812B LED strip, which is an addressable RGB LED strip. This information should also work with other similar LED strips, such as strips of the WS28XX family, Neopixel strip, among others. The WS2812B addressable LED strip comes in several varieties that differ in size, sealant or LED density. Choose the one that best fits your purpose.

Using a 0.96 inch OLED Display with Arduino Microcontroller

0.96" OLED Display
PDF24    Send article as PDF   
In this article I will show how to use the small 0.96 inch OLED display with an Arduino Microcontoller board to build a very basic Weather Station.

Introduction to using the BMP180 barometric sensor with Arduino

bmp180 barometricsensor
PDF24    Send article as PDF   
The BMP180 barometric sensor (model GY-68) in the following two images is a very small module with 10mm x 10.1mm (0.039in x 0.043in) footprint. This guide is also applicable for other similar barometric sensors.

Using the HC-SR04 Ultrasonic Sensor with Arduino

HC-SR04
www.pdf24.org    Send article as PDF   
The working principle of an ultrasonic sensor is simple and use high-frequency sound waves that are evaluated when the sensor received back the waves. To determine the distance between the robot and object, the sensor measure the elapsed time between sending and receiving the waves.

Using Flask to Control Raspberry Pi GPIOs

en.pdf24.org    Send article as PDF   
With this project you can create a standalone web server with a Raspberry Pi that can toggle two LEDs. You can replace those LEDs with any output (like a relay or a transistor). In order to create the web server you will be using a Python microframework called Flask.

Parts Required

Here’s the hardware that you need to complete this project:

  • Raspberry Pi (any Pi should work, I recommend using Raspberry Pi 3) – view on eBay
  • SD Card (minimum size 8Gb and class 10) – view on eBay
  • Micro USB Power Supply – view on eBay
  • Ethernet cable or WiFi dongle
  • Breaboard – view on eBay
  • 2x LEDs
  • 2x 470Ω Resistors
  • Jumper wires

Raspberry Pi 3

Raspberry Pi 3 (best option)

Basic Raspberry Pi Setup

Before you continue reading this project, please make sure you have Raspbian Operating System installed in your Raspberry Pi.

Installing Flask

We’re going to use a Python microframework called Flask to turn the Raspberry Pi into web server.

To install Flask, you’ll need to have pip installed. Run the following commands to update your Pi and install pip:

pi@raspberrypi ~ $ sudo apt-get update pi@raspberrypi ~ $ sudo apt-get upgrade pi@raspberrypi ~ $ sudo apt-get install python-pip

Then, you use pip to install Flask and its dependencies:

pi@raspberrypi ~ $ sudo pip install flask

 

Schematics

 

The schematics for this project are fairly straightforward. Simply connect two LEDs to pins GPIO 23 and GPIO 24, as the figure below illustrates.

RPi Web Server outputs_bb

Creating the Python Script

This is the core script of our application. It sets up the web server and actually interacts with the Raspberry Pi GPIOs.

To keep everything organized, start by creating a new folder:

pi@raspberrypi ~ $ mkdir web-server pi@raspberrypi ~ $ cd web-server pi@raspberrypi:~/web-server $

Create a new file called app.py.

pi@raspberrypi:~/web-server $ nano app.py

Copy and paste the following script to your Raspberry Pi (this code is based on Matt Richardson great example).

Creating the HTML File

Keeping HTML tags separated from your Python script is how you keep your project organized.

Flask uses a template engine called Jinja2 that you can use to send dynamic data from your Python script to your HTML file.

Create a new folder called templates:

pi@raspberrypi:~/web-server $ mkdir templates pi@raspberrypi:~/web-server $ cd templates pi@raspberrypi:~/web-server/templates $

Create a new file called main.html.

pi@raspberrypi:~/web-server/templates $ nano main.html

Copy and paste the following template to your Pi:

<br />

RPi Web Server

{% for pin in pins %}

{{ pins[pin].name }} {% if pins[pin].state == true %} is currently on

{% else %} is currently off

{% endif %} {% endfor %}

Launching the Web Server

To launch your Raspberry Pi web server move to the folder that contains the file app.py:

pi@raspberrypi:~/web-server/templates $ cd ..

Then run the following command:

pi@raspberrypi:~/web-server $ sudo python app.py

Your web server should start immediately!

python launch web server

Demonstration

Open your Raspberry Pi address in your browser by entering its IP address, in my case: http://192.168.1.100/.

rpi web server browser

Demonstration

Using a Membrane Keypad with an Arduino

Membrane Keypad
PDF24    Send article as PDF   
With this tutorial, you will be learn to access any keypad, and have it interact with a microcontroller. You can salvage these keypads from old telephones or you can purchase them from most electronics store for less than $2. They come in wide variety of shapes and sizes. The most commons sizes are 3×4 and 4×4, and you can get keypads with with words, letters and numbers written on the keys.

ESP8266 Web Server using Arduino IDE

PDF24    Send article as PDF   
In this project you’ll create a standalone web server with an ESP8266 Wi-Fi Module that can toggle two LEDs.

Secure Access using MFRC522 RFID Reader with Arduino

www.pdf24.org    Send article as PDF   
This Article shows a simple example on how to use the MFRC522 RFID reader, with a quick overview of the specifications, and a demonstration project using an Arduino.

Using RF 433MHz Transmitter/Receiver Module With Arduino

en.pdf24.org    Send article as PDF   
This Article aims to be a comprehensive guide to the popular RF 433MHz Transmitter/Receiver modules. Information on how they work, some features, and an Arduino project example that you can take and apply to other projects.



Do NOT follow this link or you will be banned from the site!
error: Content is protected !!