Trash Separation

The topic of separating trash into metal, glass, plastic, and paper comes up pretty often on this board.

I just put out a library for the capacitive touch unit on the R4. With the Love pin tuned to ultra-sensitivity I get a pretty good difference between metal and plastic/paper. Not so much between plastic and paper. But that's a tiny sensor.

If anyone is out looking for a good science fair project, even just measuring the differences and showing that the sensor can discriminate materials might be a really good one.

Just throwing it out there.

It's available in the library manager or on my GitHub.

3 Likes

may be a link would help?

interesting idea and test - could be a fun project.

Oh indeed. I meant to include that. I'll go edit and add it.

It's called R4_Touch and should be available in the library manager.

cool

should you reference your posts from Let's play with the CTSU! ?


side note:

may be setTouchMode() could return a bool (false if wrong pin) and begin() could return whatever setTouchMode() returned

bool TouchSensor::begin(const uint8_t pin, const uint16_t threshold)
{
    _pin = pin;
    _threshold = threshold;
    return setTouchMode(_pin);
}

PS/ there is the Libraries - Arduino Forum category that could be a good location for this post too

1 Like

Good suggestion.