You Are Here: Home » AVR ATmega Projects » Other Projects » Smart Trash system Using Atmega644

Smart Trash system Using Atmega644




Introduction top

For our final project, we have designed and built a ‘proof of concept’ prototype for Project Green Stations, an externally funded student group with the following mission statement:

Project Green Stations is all about changing the way people see the environment. Imagine the go-green movement as a brand. Solar panels, Toyota Priuses, and waste receptacles are all points of interaction with your idea of going green. By designing elegant, simple, and technologically advanced waste bins, we improve one element that affects that perception; one element that almost all students, faculty, and staff at Cornell see every day. We plan to have the first full prototype manufactured over the summer and ready to go before August. Over the next academic year, we will be looking to further refine the aesthetics and the hardware to best fit our needs. The expectation is by the beginning of the 2013-2014 academic year, we will begin full scale implementation.

Smart Trash system Using Atmega644

Of course as engineers, we were intrigued by the breadth of the design challenges which were posed by the idea. These include:

  • An independent power system capable utilizing solar power to maintain battery charge
  • Two different mechanisms for measurement (weight and volume)
  • A GSM-based communication system for web and cellular interface, used for data collection and system monitoring
  • A beta version of the web interface used to record and display data

We were also interested in developing a project which will be worked with beyond demo day. This presented a much different context for the development of the project compared to how we would otherwise operate. We had to meet with the team typically once a week to discuss the specs of the project and provide status updates. Throughout the process, we had to be more concerned with extra challenges like minimizing cost and making the system easy to further develop.

High Level Design top

The Power System

The requisite for solar power comes from the core of the thinking behind this design: a completely sustainable embedded system, which could ultimately monitor our own efforts towards a sustainable society. Given the downward trend in cost/unit energy of solar power, combined with gains in the efficiency of solar cells, it seems that solar could soon be a commercially feasible way to power isolated systems such as these. Our basic implementation is shown here:

The design of the power system is driven by the solar panels. The incorporation of the charge controller, while complicating the design with some ‘IC tuning’ circuitry, enables higher efficiency power transfer from solar cell to battery, which is a huge gain for this application.

Operating voltages for each system had to be considered. A 6V battery would provide enough ‘buffer voltage’ for the system to operate reliably even through the greyest stretches of Ithaca weather. The charge controller requires that the voltage input from the solar panel be at least 3.3V higher than the voltage of the battery. We decided that a 12V panel would be appropriate, as it is a common operating voltage in the size and wattage appropriate for the system. The rest of the system runs at 5V, only because the minimum operating voltage of the GSM module is 5V. We were hoping to run all digital components at 3.3V with a 5V supply to drive the measurement circuitry, but decided the additional cost and loss in efficiency would not be worth the effort.

Power to the measurement system is controlled by a low-side switch, implemented with a power MOSFET controlled by the MCU. Because this system can draw up to over 650mA, it’s important to be able to limit operation.

What enables us to drive what can be a very power intensive system at times is the fact that the system will be asleep for the vast majority of the time. Both the GSM and MCU have low power modes, which reduces power consumption to the low milliwatt range. It can be awakened by timers and according to the operating protocol, will perform its various tasks. These will use a higher wattage for a short period of time, after which the system puts itself to sleep again.

Measurement System

Measurement devices that would be applicable to our needs for measuring some quantity (distance sensors for volume, force sensors for weight, etc.) are beyond the price and performance range of the application. As a result, this turned out to be the most improvised subsystem of our final project.

In our search for a cheap alternative to weight sensors, Bruce mentioned an interesting property of the ESD foam around the lab. There�fs a correspondence between a compression force on the foam and it�fs resistance as a semiconductor. We harnessed this effect with a simple voltage divider and trial and error testing, followed by an easy calibration to map what the on-chip ADC reads at the output of the voltage divider to an actual weight.

The idea for volume measurements stemmed from our lab 4 project, where the scattering/absorption effect of infrared light were used to determine the RPM of a fan. For this application, an array of IR emitters is oriented vertically within the trash can, opposing an identical array of phototransistors. The sum of the currents drawn through the phototransistors by the presence of IR light is drawn through a resistor, creating a voltage drop that corresponds to the level of the trash within the can. If trash blocks the light, then the total current and thus the voltage drop will decrease. Again, all that is left to do is take a quick ADC measurement from the node of interest, which is fed into a rough line of best fit based on the calibration to estimate the volume of trash in the can.

In addition to being the most improvised, the measurement system was also the easiest to implement. While some testing and calibration was required, the hardware and the physics do most of the work for taking the measurements, which are simple ADC conversions. Additionally, expanding the measurement system to monitor multiple receptacles within the same unit (e.g. trash, recycling, and compost) is a matter of replicating the circuits and the code, which is important for the future intentions of the project group.

Web Interface

As shown in figure 4, the data is stored in the form of the Tables in MySQL server. The website is hosted on the server side (a laptop) in the form of HTML and JQuery. The JQuery generates the visualization of trash data and bin location using data from the MySQL. Since JQuery runs on client side and can’t access and server side resources, it needs to interact with PHP to fetch data from MySQL.

The received data from microcontroller is in the form of SMS. To convert a SMS message into a SQL query, we use a relatively simple Python Script. The Python Script runs every one or two hours checking the Google Voice Account for an incoming SMS message. It parses the HTML into a tree to fetch the SMS message, translates the sub-tree into dictionaries to extract the fields, performs the database query, and then deletes the SMS message from the inbox.

Some additional outside API are called by the JQuery to perform additional functionalities. The Google Map API is called with Geo-location data to display the location of trash bins on a map. And the Google Doc API is called with CSV data to enable export of data to Google Doc for further modeling and analysis.

Communication

For a communication system, we were granted a Telit CC864-DUAL GSM module, complete with a 6 month data plan from the nice folks at Verizon. The module comes complete with USB and RS232 serial interfaces, a CDMA wireless transceiver, GPS unit, and magnetic antennae for better signal quality. Interfacing with the device turns out to be incredibly easy. Serial commands from the MCU can control power mode and data transmission.

Relationship of the design to available IEEE, ISO, ANSI, DIN, and other standards

FCC: Reusing the Telit FCC ID for the end product may be possible if the antenna is greater than 20cm from the human body when in use and there are no co-located transmitters. The system integrator must assess the final product against the applicable FCC regulations. The Antenna we use satisfies the following FCC requirement of less than 5.12dbi gain in CDMA mode.

For the GSM device itself, the manufacturer states the following:

This device complies with Part 15 of FCC Rules.

Operation is subject to the following two conditions:

(1) This device may not cause harmful interference, and

(2) This device must accept any interference received, including interference that may cause undesired operation.

Existing patents, copyrights, and trademarks relevant to the project

We were not able to find any instances of intellectual property akin to this project.

Hardware Design top

Power System

Different circuits were approached in different ways throughout the design process. The circuitry for the charge controller is derived completely from the application notes in its datasheet. The topology and component values simply tune the IC to do what we need it to do.

The LT3652 Power tracking battery charger, with a feature set geared for solar charging, comes in an MSOP-12 package, which we had to break out with a specialized protoboard.

Smart Trash system Using Atmega644

The two components of interest are the inductor and the sense resistor. For our purposes, we want the maximum charge current of 2A, corresponding to RSENSE=0.05Ω. VBAT(FLT) is our battery voltage of 6V. Assuming a ΔIMAX (ripple current) between .25ICHG(MAX) AND .35ICHG(MAX) and a VIN(MAX) from a 12V solar panel of 17V (on a cold clear day), we chose and inductor value of 3.3μH capable of handling the maximum charge current and necessary power transfer to the battery.

Parts List:

PartMPNNCost per unitNumber of unit usedTotal Cost
DC-DC ConverterOK R – T / 3 – E – C$7.281$7.28
4A Fuse0233004.MXP$0.841$0.84
In-line fuseholder01500274Z$2.971$2.97
MSOP-12 Breakout boardIPC0078$5.991$5.99
850nm IR EmitterVSLY5850$1.635$8.15
850nm NPN PhototransistorBPW77NA$2.425$12.10
Charge controllerLT3652$6.531$6.53
Schottky Diode1N5820-T$0.503$1.50
Sense ResistorPWR4413BR050F$1.371$1.37
25? 1W ResistosRSA-25RCT$1.091$1.09
120Ω, 268Ω, 100kΩ, 121kΩ, 549kΩ, 464kΩ,LabLab1 Each$0.00
3.3μH InductorTSL0709RA-3R3M2R9-PF$0.681$0.68
SLA Battery, 6V 12AhSLA-6V12-F2$14.951$14.95
GSM ModuleTelit CC864-DUAL$0.001$0.00
Power MOSFETBUZ73, from labBUZ73, from lab1$0.00
ATmega644 MCU161$16.00
$79.45

For more detail: Smart Trash system Using Atmega644

Leave a Comment

You must be logged in to post a comment.

Read previous post:
Touch screen video chess Using Atmega644

Introduction Our project is a two player touchscreen controlled speed chess game. One of our goals for this project is...

Close
Scroll to top