LUA

Blog, LUA, RTC

Mailbag Arrival !! DS3231 – I2C Real Time Clock Module

  What we will need: CBDB Board USB adapter (take a look on Part 1 for details how to connect them together) DS3231 Module – you can buy them at a very good price HERE, 1.62USD/pcs, a very good deal!! For programming and uploading the driver and the software we will continue to use the LuaUploader as before. If  you remember my article

LUA, RTC

Time sync with Google page

  How  we will do it:  Connect to Google server, fetch the page header that contain the Timestamp and do some string manipulation to obtain the Date & Time information in the format that we need to be able to update our Real Time Clock:  getTime = function()      conn=net.createConnection(net.TCP, 0)      conn:on(“connection”,function(conn, payload)             conn:send(“HEAD

LUA, RTC

AT24C32 – I2C External EEPROM Data Looger

As you remember from our previous article about DS3231 RTC Module, we have identified onboard an EEPROM chip, a 32k AT24C32 one. It is independent from the RTC circuit and conected on the I2C bus, perfect companion for a Data Logger System 🙂                                                        AT24C32 EEPROM The AT24C32 provides 32,768 bits of serial electrically erasable and

LUA, Temperature

LM75 – I2C temperature sensor driver – CBDB

I was asked if MCP9008 Temperature sensor can be replaced with the less precise but widely available LM75 one. The answer is YES, it can be done without any problems, actually they can share same slot on CBDB Dev Board without any hardware changes, just choose your desired I2C address with the A0, A1, A2 pins.  

LUA, Temperature

ESP8266 – NodeMCU – I2C – Programming considerations

The story behind: Many people are complaining about I2C communications problems, mostly related with the NodeMCU LUA. I found out that many of the related problems are generated from a easy to fall in trap, generated by the way how code is executed in case of a step-by-step debug run or using a interpreter console,

LUA, Mailbag

Mailbag !! MPU6050 Module I2C Driver, Init and config

As been requested by many people that have difficulties to use the MPU6050 Modules, I’ve done a more detailed ESP8266 Video Tutorial related with the MPU6050 GY-521 Module initialisation and basic usage. It is a detailed, step-by-step tutorial, showing all the needed init stages and tests for a proper and smooth usage of the MPU6050

Scroll to Top