Home > Projects > DRS Oil Container

DRS Oil Container

Summary of DRS Oil Container


The project creates a DRS Oil Container that uses an HC-SR04 ultrasonic sensor and an Arduino MKR1000 to monitor oil level and automatically order replacements via Amazon Dash Replenishment Service when the level falls below a threshold. It uses AWS SNS, Amazon DRS, Arduino IDE, and the AmazonDRS library; setup requires creating an Amazon developer account, SNS topic, LWA security profile, and a Dash Replenishment Device with slots and ASINs. The MKR1000 reads sensor distance and triggers DRS.requestReplenishmentForSlot when low.

Parts used in the DRS Oil Container:

  • Arduino MKR1000
  • Ultrasonic Sensor - HC-SR04 (Generic)
  • Jumper wires (generic)

An oil container that can automatically order new oil via Amazon DRS when the oil level in the container is low.

Things used in this project

Hardware components

Arduino MKR1000
Arduino MKR1000
× 1
Ultrasonic Sensor - HC-SR04 (Generic)
Ultrasonic Sensor – HC-SR04 (Generic)
× 1
Jumper wires (generic)
Jumper wires (generic)
× 1

Software apps and online services

Arduino IDE
Arduino IDE
AWS SNS
Amazon Web Services AWS SNS
Amazon Dash Replenishment Service
Amazon Web Services Amazon Dash Replenishment Service

Story

Quick Solutions to Questions related to the DRS Oil Container:

  • What does the DRS Oil Container do?
    Automatically orders a new bottle of oil via Amazon DRS when the sensor reading is below the threshold.
  • What hardware components are used?
    Arduino MKR1000, HC-SR04 ultrasonic sensor, and jumper wires.
  • Which software and services are required?
    Arduino IDE, Amazon Web Services SNS, and Amazon Dash Replenishment Service (DRS).
  • How is the level detected?
    An HC-SR04 ultrasonic sensor measures distance; level is calculated from sensor reading and bottle height.
  • How does the MKR1000 trigger a purchase?
    The MKR1000 uses the AmazonDRS library to call DRS.requestReplenishmentForSlot when levelCheck returns true.
  • What setup is needed on the Amazon side?
    Create an Amazon developer account, SNS topic, LWA security profile, and a Dash Replenishment Device with slots and ASINs.
  • Where is the sensor placed on the container?
    The sensor is placed under the container's cap.
  • What threshold is used in the demo?
    In the demo, the Genuino initiates a purchase when the level is below 5 cm.
  • Can this project be used for other liquids?
    Yes, the project can be extended to any type of liquid container.

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter
Scroll to Top