- To get started with Tessel, by following their instructions
- Make sure you have
node.jsand all of the dependencies installed
- For debugging, plug your machine into the tessel via USB (you need to have tessel climate module plugged into slot B, and relay module plugged into slot D)
- To run in debug mode, use
tessel run app.js
- To deploy to the tessel to have it run without your machine, use
tessel push app.js
- tessel climate module ('climate-si7020')
- tessel relay module ('relay-mono')
- moisture sensor
- water pump
- chassis (optional)
Plug the tessel climate module into port A and the relay module into port D. For the moisture sensor, attach the power and ground to the pins in the tessel GPIO jumper (in our 'tessel' image example we plug a red jumper cable into vcc, brown into ground, and yellow into pin A1). In our setup, the tessel is supplied by a 5V power supply, and has USB battery power for backup. Tessel is powered by a mini-USB cable.
Information is gathered from the yellow pin using the below code in app.js:
var gpio = tessel.port['GPIO']; // select the GPIO port var myPin = gpio.pin['A1']; var moisture_data = myPin.read();
In our example, for the relays, one controls a 110V AC plug for the LED lamp, and the other relay controls a 12V DC plug for the pumps.
The relay is like a light switch that the tessel controls; when the tessel sends a signal to the relay, a mechanical switch flips and the electricity is turned on/off for the corresponding component. The relays can handle up to 240V / 5 amps, which is far more than needed.
The pump is a $7 pump from ebay, but any pump can be used.
Watch it in action (youtube):
Developed and presented over a weekend at a hackathon (youtube):
- Laura Thompson for being the best mentor our team could have had.