Use the NXP Rapid IoT Prototyping Kit to monitor the environment inside your refrigerator, reporting interior temperature, humidity and air quality. By just placing the unit on a shelf in your refrigerator, you can monitor the interior using your smartphone or tablet.
Keeping your refrigerator temperature below 4C (40F) is needed for food safety. But you don’t want to be too low, say above 0C (32F)for energy savings as well as keeping liquids from freezing. Since your refrigerator can vary in temperature due to position inside the compartments, external temperature, compressor cycling, door open time, etc. it is valuable to graph data overtime.
NOTE: Do not use this in a Freezer as the LiPo battery (and LCD) would be outside of operating range of these components. -20C (0F).
Once programmed and configured, place the NXP Rapid IoT Node device in your refrigerator or other location to be monitored. Using your phone/tablet and web, data is then collected from the monitor via Bluetooth LE whenever your phone is within range and reported on the web site every few minutes. Also using the NXP website https://rapid-iot-studio.nxp.com/you can display graphs.
1. Prepare your NXP Rapid IoT device:
Go to the NXP Rapid IoT Getting Started page to set up your phone/tablet app, web-based IoT app and your NXP device.You only need the free NXP account and phone app installed and logged in.
Once you successfully connect your phone and cloud access via Bluetooth as described in Getting Started page, you will need to install the Is it Fresh application to the NXP node:
2. Download the Is_It_Fresh Monitor app from Github to your PC or Mac:
a. Go to https://github.com/rgrokett/is_it_Fresh
b. Click on Cloneor Download then Download ZIP
3. Unzip the files to an empty folder on your PC/Mac.
4. Plug in your NXP Rapid IoT device to your PC/Mac.
5. Hold down the SW3 button and press SW5/Reset buttonWait until the LED blinks GREEN then release the SW3 button.
6. Your computer should now detect the NXP as a new Mass Storage drive.
7. Drag-n-drop (or copy/paste) the is_it_fresh.bin file into the Mass Storage drive.
The LED will blink purple during the download, then blue/white during programming and green. Do NOT touch until it completes and resets. (up to 1 minute)
8. Once finished, the device will automatically reset.
9. You can now eject the Mass Storage drive.
NOTE: if you need to Factory Reset your NXP device, see Appendix, below.
You should now see a Temperature display in the NXP’s screen.
Connect Phone/Tablet to NXP Is_it_Fresh AppOnce your NXP device is programmed, you need to set up the phone for this application.
1. On your phone/table, start the NXP Rapid IoPapp.
2. Log in with the account you created previously in the Getting Started web page.
3. Click the Menu icon in the upper left corner and then click the Box icon for the Device screen.
4. Click the other box icon in the upper right corner
5. You should now see a screen with the“Is_It_Fresh” application listed.
(If not, be sure your phone’s Bluetooth is turned on)
6. Select Is_It_Fresh application and click Provision. It will download to your phone.
7. If you see a “You have no widgets…” screen, click the widgets dashboard icon.
After a few seconds, you should get a data display on your phone. This data should update every 5 seconds or so.
Usage1. Place the NXP node in the refrigerator and close the door.
NOTE: Do not use this in a Freezer as the LiPo battery (and LCD) would be outside of operating range of these components. -20C (0F).
2. Note that the NXP node’s LCD backlight will automatically turn off to conserve battery power.Touch the node device anywhere on its frame to turn the backlight back on for afew seconds.
3. With your phone sitting on the data display screen, you should still see data. (Most refrigerators are not completely sealed to RF signals, even though metal. The seals are usually plastic or rubber.)
4. Watch for data updates every 5 seconds or so. Or check the Bluetooth icon on the bottom right corner of the screen. If it is blinking, then you have lost Bluetooth signal!
5. You can add chart graphs using either the phoneor website https://rapid-iot-studio.nxp.com
a. Select the Dashboard icon (looks like as pedometer)
You should see “You have no widgets configured”
b. Click the gear icon on the right side of the screen, or where it says “Click the * configuration button…”
c. The Configuration Dashboard will appear.
d. Click on the Data Graph icon and a window will appear.
e. In the Data Graph window, click gear icon above “Widget is not configured”
f. Title: IsIt Fresh
g. X-Axis: Select Is_It_Fresh-> SensorData->_timestamp
The graph should start populating. You can add separate graphs for Air Quality and the Door Light detector by repeating above steps, selecting the other data.(These need separate graphs to allow proper scaling to occur.)
As long as the phone/tablet is within Bluetooth range (~30ft) of the NXP node, and the NXP program left running in the background, the graphs should update.
To replace the phone, you will need a compatible Hub such as the NXP SLN-IOT-GPI kit https://www.nxp.com/part/SLN-IOT-GPI
Under the HoodIf you use the NXP Rapid IoT Web IDE https://rapid-iot-studio.nxp.com/, you can load the.atmos file and view or modify your copy.
This app takes temperature, humidity and air quality readings every 5 seconds and watches for the refrigerator light every half second. The data it relayed via Bluetooth Low Energy (BLE) to your phone/tablet running the NXP app. The app relays the data to the NXP cloud for web graphs.
AppendixIf your NXP hangs and nothing seems to work, you may need to reset the device:
First try a reboot:
1. Using a paperclip, push and release the Reset button
2. The NXP node will reboot and rerun the currentapplication.
Factory Reset NXP Rapid IoT Node:
1. Plug in your NXP device to your PC/Mac
2. Hold down the SW1 button and press the SW5/Reset.
3. Continue holding the SW1 button for another couple seconds until Green LED starts flashing.
4. The LEDs will go through a cycle of Green, Purple, Blue and/or White and then resets automatically.
5. The factory application will automatically be installed from internal flash memory and run once it reboots.
Comments