Most recent activity
-
@DrAzzy I am glad that I posted a link to the N mosfet tutorial even though it was incorrect! As it looks like you have provided great information to the Espruino user community as a result. I don't see the photos that are referenced in the tutorial. Am I doing something wrong when viewing Github or are they not posted yet?
Thanks again for your informative post.
-
You might want to consider using a power Mosfet to switch on your light bulb like the one in the link below. They even reference switching on a car headlight with a 5v micro controller.
https://www.sparkfun.com/products/10213
Sparkfun sells a couple of breakout boards to switch loads using Mosfets.
https://www.sparkfun.com/products/11214
https://www.sparkfun.com/products/10256
p.s. I am not connected to this Sparkfun in any way other than being a customer.
If you want to control AC loads solid state relays seem to be simpler to interface with a microcontroller
-
-
-
I created this module today. It allows Espruino board to interface with a TMP102 temperature sensor. It is accurate down to 0.0625 of a degree.
I2C1.setup({scl:B6,sda:B7}); var TMP102 = require("tmp102").connect(I2C1); console.log(TMP102.getTemperature());
function TMP102(_i2c) { this.i2c = _i2c; this.address = 0x48; } TMP102.prototype.getTemperature = function() { var self = this; var d = self.i2c.readFrom(self.address, 2); var temp = (((d[0] << 8) | d[1]) >> 4)*0.0625; return temp; }; exports.connect = function (_i2c) { return new TMP102(_i2c); };
-
You could always poll the GSM board using the AT command for battery voltage.
at+cbc will return current state of battery charge.