Pages

Tampilkan postingan dengan label augmented. Tampilkan semua postingan
Tampilkan postingan dengan label augmented. Tampilkan semua postingan

Sabtu, 14 Mei 2016

Augmented Water Hacking An Instructable

For anyone reading this blog who is not familiar with the positive meaning of the word hacking, it can be used to mean improving on an existing item, whether thats a computer program or a real-world piece of hardware, like a water flow meter system.

Tonight I saw an Instructables project called Augmented Water. Im not sure why they called it augmented, although it might be intended to mean the water faucet has something extra added to it (in this case to encourage using less water). This project adds to a water faucet an extension
consisting mainly of a flowmeter, an Arduino and a strip of LEDs (light emitting diodes).

The concept is to visually let the person who opens the faucet know when theyve used a certain amount of water, with the expectation that the LEDs lighting up or changing color will prompt the person to close the faucet more quickly than if they didnt realize how much water they were using. According to the Instructables article, the code is written to turn the LEDs red after one liter is used.

In the comments on the project webpage, one reader suggests using "an ATiny85 or an Arduino micro to shrinkify things." The project post author replied by saying, "Id love to see an energy harvesting mod, e.g. inside an LED shower head."

So what Im proposing is that between now and the next meeting of the Humboldt Microcontrollers Group (on June 26), the group members, and other people who read the blog and are interested in the idea, should hack the design shown in this Instructables post and come up with ways to improve it. Design it with a smaller microcontroller, like the one reader suggested. Come up with a different type of lighting that you think would be more effective at conserving water, such as different colors to signal different amounts of water, or an appropriate limit or target for the volumes of water for different uses. Maybe develop an interesting looking 3D-printed housing for the Augmented Water unit. Improve the code in some way. There are lots of ways to hack the concept of an MCU-controlled water flowmeter with LED volume indicators to promote conservation of water.

One hack I think would be cool is along the lines of what the post author suggested. Im not sure what they mean by "an LED shower head," but it would be interesting to modify or create a shower head that had LEDs that generated soothing happy light when it starts running, but after a certain flow the LEDs start giving off a less happy light to encourage you to end your shower shortly. If you dont shut the water off after a second usage level that youve programmed in, the LEDs are changed so they give off downright annoying and unpleasant light. (Now I have to Google to see if someone already sells a shower head like that.)

What are your hacks for this? Who knows -- if you come up with some good ideas, maybe people will want to buy them from you, or you might have an Instructables post written about the hack youve built. Bring both your ideas and any physical models you build to the June 26 meeting or email the ideas or pictures to me (arcatabob [att] gmail [dot] com) if youre not going to be at the meeting.


**********

Read More..

Sabtu, 07 Mei 2016

TI Tiva C Connected LaunchPad

Allow me to introduce the shiny new Texas Instruments (TI) Tiva-C Connected LaunchPad!


Lots of pins, two 40-pin BoosterPack headers, two buttons, four LEDs, a USB host/slave port and an Ethernet port! All for $20 with free shipping.

That last bit is why I bought one the moment I read about it. Then I started hoping that Energia supported it. Luckily for me, Energia seems to have started working with TI directly and already had support for this board. Energia is even linked on TIs product page and mentioned in the user manual / datasheet.

If you arent familiar with Energia, its a port of the Arduino IDE to work with TI LaunchPads. It supports most of the LaunchPads, and more are being added fairly regularly. Energia also has a decent pile of libraries for the various LaunchPads, including the basic i2c, SPI, and so on, as well as Ethernet and WiFi. This makes getting your LaunchPad connected to the outside world just as easy as with an Arduino.

That double row of 0.1" spaced holes along the bottom of the board are a complete breakout of all the pins. The manual / datasheet gives header part numbers you can buy from your favorite parts house and instructions to install them. Once you do, you can plug the entire board into the middle of a solderless breadboard. Its a fairly interesting feature, and one that I hadnt seen before.

The most attractive part of this board to me is the cost. At $20 it costs less than an Arduino ($25) or an Ethernet Shield ($31 for a genuine Arduino), let alone both. It even comes with a USB cable for programming it as well as an extendable/retractable Ethernet cable. To any annoyed Arduino fans out there, know that I too am an Arduino fan and use them often.

On the bottom of the Tiva-C Connected LaunchPad (thats enough of the official name, Im going to call it the TM4C1294 LaunchPad from here on out; the core chip is a TM4C1294) we find female headers as well as pin designations:


The white stickers have your boards serial number and MAC (media access control) number, though you can set the MAC in software to be anything youd like.

Beyond Ethernet, there are plenty more communication methods and channels at the TM4C1294s disposal.
  • 7 TTL Serial ports.
  • 3 I2C ports.
  • 6 SPI ports.
  • USB Host / Device port.
  • At least two CAN bus ports.
Is that enough for you?

Before you start worrying about having enough RAM for all this, let me assure you: You do. You get 256KB (thats kilobytes, no funny business with kilobits) of RAM, 6KB of EEPROM storage arranged in 32bit cells, and a full megabyte of flash storage for programs. Oh, and dont forget the 120MHz ARM Cortex A4 CPU with hardware floating point abilities.

For input / output you get 20 analog inputs spread between two 2 million samples per second 12bit ADCs, tons (>70) digital inputs/outputs, >20 PWM outputs, two pushbuttons and four LEDs, plus a RESET button and a WakeUp button. For a full rundown on the pins available in Energia, heres a pinmap.

So weve got tons of everything, what do we do with it?


Anything?

Beyond the snarky answer, I have no idea what you want to do with it. Heres something cool though! Texas Instruments bought a chunk of Exosite.com for people to use with LaunchPads, or any other device.

Exosite is a cloud storage and delivery platform, among other things. Using TIs section of it you can create a free account and start uploading your data, whatever it might be. Once its there you can do all sorts of interesting things with it. Ive been having it chart the light level in my living room for the last 18 hours or so. Heres the chart ti.exosite.com generates for me:


It can do far more than just graph data, as well. Ill go into more detail on how to get your TM4C1294 LaunchPad, Arduino Ethernet, Raspberry Pi, desktop computer, or anything else that can speak basic HTTP, connected to TIs slice of Exosite in a future blog post.

Alternatively, you have enough RAM storage and CPU power to use the TM4C1294 as a web host itself. If youre only going to use your data (whatever it might be) on a single network, there is no reason to bring the cloud into things at all. Writing webpages inside programs is time consuming, but certainly doable. The first thing I did was make a webpage hosted on the TM4C1294 that allowed me to turn the onboard LEDs on and off.

In conclusion, if youre looking to dig into the much vaunted Internet of Things, this might be a good place to start.

-Ed Smith
Read More..