Working in a welding shop can and will be hazardous. From experience it is important monitor possible hazards while working in such an environment. This device setup is used to alert if any hazards may occur like hazardous gasses in the air, combustible gasses in the air, or if the temperature is unsuitable for working.
Working in a shop that has a lot of welding going on it is very noticeably smoggy. We wanted to know if there was anything we could make to send an alert once it reaches unsafe levels. Fans run all day long and the shop is a big building but having an extra safety precaution is always a good idea, so we decided to make one of our own.
This device is made to protect from a freak accident occurring or eliminate someone from getting sick. It will be placed at head level to get the best readings accurate to where someone will be breathing. With this device workers can feel more confident in working in a safer environment as well as know if they need to take a break or open doors to help the air quality return to a safe level.
Device 1: Temperature Monitoring and Alert SystemSensor Used: Grove
Analog Temperature Sensor (connected to A5) Primary Function:
- This device continuously monitors temperature readings from an analog temperature sensor.
- The temperature is calculated from the sensor's analog value, divided by 28.35, to derive a temperature in degrees Fahrenheit.
- Every 10 seconds, the device publishes the temperature reading to the Particle Cloud with the event name "Temperature".
- If the temperature exceeds a predefined threshold, the device publishes another event, "thresholdExceeded", to the Particle Cloud.
Bi-directional Communication Feature:
- The device is programmed to listen for "thresholdExceeded" events from other devices.
- Upon receiving a "thresholdExceeded" event, it activates its onboard D7 LED for 5 seconds, serving as an alert signal.
Sensor Used: MQ2 Gas Sensor (connected to A5) Primary Function:
- This device measures the concentration of various combustible gases using the MQ2 sensor.
- The analog reading from the MQ2 sensor is directly assigned to the
ppm2
variable, which represents the concentration of gases. - The MQ2 PPM reading is published to the Particle Cloud every 10 seconds with the event name "MQ2_Dawson".
- If the
ppm2
value goes above 1000, indicating a high concentration of combustible gases, the device publishes a "thresholdExceeded" event.
Bi-directional Communication Feature:
- Similar to the first device, it listens for "thresholdExceeded" events from other devices in the network.
- When such an event is detected, it turns on its D7 LED for 5 seconds as an alert.
Sensor Used: MQ135 Sensor for Air Quality (connected to A0) Primary Function:
- This device is dedicated to monitoring air quality using the MQ135 sensor.
- It measures the concentration of various gases like ammonia, nitrogen oxides, alcohols, aromatic compounds, and smoke, providing an overall air quality index in terms of PPM.
- The MQ135 sensor's PPM value is published to the Particle Cloud every 10 seconds with the event name "MQ135_Paul".
- If the air quality deteriorates beyond a certain threshold (PPM value greater than 1000), it triggers a "thresholdExceeded" event.
Bi-directional Communication Feature:
- It also subscribes to the "thresholdExceeded" event and will activate the D7 LED for 5 seconds whenever the event is received, regardless of which device in the network triggered the event.
Overall Network Behavior:
- All three devices are interconnected via Particle Cloud events. If any one of them detects a condition that exceeds the predefined thresholds (be it high temperature, gas concentration, or poor air quality), it will notify all other devices in the network.
- Upon receiving this notification, each device will trigger its D7 LED, providing a visual alert. This system ensures that an alert in one location (detected by any one of the devices) is communicated to all others, enhancing the safety and responsiveness of the setup.
Comments
Please log in or sign up to comment.