Arduino – Uno, Nano & Mega

Arduino_UNO
Extension Description
Control the inbuilt functionalities of Arduino such as the digital and analog Input/Output, tone, and timer.

Introduction

The Arduino extension allows you to control the inbuilt functionalities of the Arduino board (Arduino Uno, Arduino Mega, and Arduino Nano) such as the digital and analog Input/Output, tone, and timer.

Read More

PictoBlox Blocks

The read state of digital pin () block is a boolean block available in Arduino Uno, Arduino Mega, and Arduino Nano boards. It reads the state of the digital pin on the hardware and returns either a True value (if the pin is set to “High”) or a False value (if the pin is set to “Low”).
This block reads the value from the analog pins of boards such as Arduino Uno, Arduino Mega, or Arduino Nano. It returns the 10-bit resolution of the analog pin, with a range of 0 – 1023, which is mapped to the voltage of the pin (usually 0 – 5V). For example, if the value received is 512, then the voltage is roughly 2.5V.
This block enables users to set the digital state of an Arduino digital pin to either a High (5V) or Low (0V) voltage output. It can be used on the Arduino Uno, Mega, and Nano boards.
This block sets the output of a selected PWM pin of an Arduino Uno, Arduino Mega, or Arduino Nano board to a value from 0 to 255. When set to 128, the output will be high for half the time, and low for the other half. This allows users to control the voltage output to an attached device.
The play tone on () of note () & beat () block is a useful tool for adding audio elements to projects. It can play a tone with a certain frequency (note) for a specified duration (beat) with either a selection from the drop-down menu or a user-defined frequency and duration in milliseconds.
This block allows users to measure the amount of time that has passed since their device was turned on or since the timer was reset. It returns this time in milliseconds, making it a useful tool for measuring elapsed intervals.
This block resets the timer value to 0.0, which is necessary at the start of a project to ensure the Timer block holds the correct value.
This block takes in a given value and converts it to either an integer or a float depending on the input.
This block allows you to scale a value from one range of numbers to another.
All articles loaded
No more articles to load

Block Coding Examples

All articles loaded
No more articles to load
Table of Contents