Distance measurement using ultrasonic sensors is an essential feature of many industrial automation applications requiring level measurement, object detection and counting, proximity sensing, distance measurement, dimension measurement, and much more. This guide walks you through the hardware setup and AppBlocks visual programming to build a fully functional distance meter using a MaxBotix ultrasonic sensor.
24 posts tagged with "sensor"
View All TagsAs we all know, two things are absolutely necessary to keep plants alive: water and light. This article is short, but feel free to jump straight to the demo.
We want to create a system that can autonomously keep our green friends alive, and as such, we require the following features:
These two features are the bare minimum for a smart indoor farming solution, but many other capabilities can be added to the system, such as:
- Temperature, Humidity, and CO2 monitoring: to monitor water levels in the air surrounding the plants.
- Leak detection and water level sensing to monitor water sources (a tank, a well, a container, etc.)W
- Soil humidity to monitor the soil's state
- Access control, ingress monitoring, and intrusion detection to keep bad actors away.
- Nutrient supply control: to provide fertilizer for the plants.
We got a mini-golf for the office, which meant we had to find a way to keep track of how many times we actually scored.
Hardware
Sensors
There are several ways a system can detect the presence of an object (a rolling ball, a box on a conveyor belt, assembly line counting, inventory management, intruder detection...).
- Break-beam sensors have two ends, an emitter and a transmitter. The emitter sends out a beam of invisible infrared light and the receiver tells the device (in our case a TPS using Tibbit #00_1) if the light can be received or not. One drawback with IR sensors is that they can be affected by sunlight, but since we will only use the mini-golf indoors, that's not a problem. Other IR-based sensors can also detect proximity, but that's not required for our application.
- Sonar sensors could also be used (check here and here) but the break beam sensor is cheaper, faster, and smaller, making it more suitable for this application. Sonar sensors give the distance between the object and the sensor, which is also not required by this application.
- Ambient light sensors output a signal proportional to the intensity of received light. In theory, we could use one by placing it at floor level, pointing up, on the expected path of the ball, but the install process is too hands on, and the sensor readings could be very easily impacted by debris collected by the sensor.
- Pressure pads also a very valid alternative, although that would require more testing and callibration, as well as more physical modifications to the mini-golf track.
In this project, we learn how to use a Tibbit #01 to interface with a MaxBotix MB7851-B2A TankSensor.
This project uses Tibbit #08 to scan cards with a Wiegand reader and report access metrics to AppBlocks Cloud.
This project uses Tibbit #61-1 to connect to a Telaire T5100 CO2 sensor. Every 1 second the sensor value from line 1 of #61-1 is read, formatted to get the PPM (particles per million) value, and then printed to the console.
The project is similar to our Peristaltic Pump (Stepper Motor) Control via Modbus project, but with the addition of an AppBlocks Cloud dashboard for remote control of core settings. Read more about the project here.
This project demonstrates how the TPS can be used to reboot a computer remotely.
The idea is to leverage the TPS to control the reboot or power pins in a computer to allow the user of the main computer (the target machine) to reboot the machine remotely.
This project prints whether or not Tibbit #63-1 is connected to 110V AC power, and also buzzes the TPS if it is.
This project prints BP#05's two holding registers (FLOOD_FLAG and FLOOD_SENSITIVITY) along with the current time.
This project shows how to use Tibbit #22 with an RTD sensor.
This project shows how to use Tibbit #62. Tibbit #62 features two identical individually configurable 1-wire/single-wire channels. Each channel can accommodate up to sixteen 1-wire sensors or one single-wire sensor.
The project showcases AppBlock's prowess in working with Modbus devices.
This utility project scans the range of possible modbus sensor ids and prints out the ids of the sensors that respond to the query. The project is useful for identifying the modbus id of a sensor.
This project demonstrates how to upload temperature readings from a modbus temperature sensor to the cloud via MQTT.
This project outputs sensor measurements using sys.debugprint, therefore it needs to run in debug mode.
This project shows how to use modbus TCP to poll a sensor value of a modbus slave device over TCP.
This project is to be used with the Modbus TCP Slave example project.
This project shows how to use modbus TCP to transmit a sensor value to a modbus tcp master.
This project shows how to use the CP01 ambient temperature sensor.
This project shows how to use the CP02 ambient temperature and humidity sensor.
This project shows how to use the CP03 ambient light sensor.
This project shows how to use the Tibbit 28 light sensor.
This project shows how to use the Tibbit 29 temperature sensor.
This project shows how to use the Tibbit 30 temperature and humidity sensor.