Posts

Showing posts with the label Arduino

JuncTek Battery Monitor MQTT Controller

Image
 I recently installed some 48 volt Lithium Iron Phosphate battery packs at the Ranch to replace the 9 year old Lead-Acid batteries that had started to fail.   eg4-lifepower4-battery-48v-100ah   These are rack-mount battery packs that are intended for powering computer servers.  They are reported to work very well in an off-grid power system.  The Problem I had a problem to solve before the upgrade, in that the old 48 volt inverter I had been using in our solar power system required a programming interface to change its operating parameters to match the new battery specifications.  Unfortunately, the manufacturer wants over $400 for the required interface to make these changes.  I am unwilling to pay this extortion money for a simple device that should cost less than $100. The communications protocol and interface is proprietary, so it would take a considerable effort to hack the interface. There are two sets of parameters in dealing with the inverter/b...

An Alternative BMP280 Module with the Arduino

Image
  An Alternative BMP280 Module with the Arduino Filed in Microcontrollers on Jan.20, 2019 Besides the Adafruit BMP280 breakout module, I found a cheaper alternative on amazon for $5.88. This module is sold by a Chinese company named DiyMore.  It is a 3.3v only breakout, so it has no onboard regulator or level translating circuitry.  So you must be careful to only use a 3.3 volt supply with it.   DiyMore BMP280 This module arrived in a package marked as a BMP085, which led to some confusion, but I eventually discovered that it is indeed a BMP280 (Device ID=58), which supports measurement of Atmospheric Pressure, Temperature and Humidity.  Altitude may be calculated from the barometric pressure, assuming you know what the local pressure or altitude was on startup.   DiyMore BMP280 Back side As you can see, it breaks out all of the pins necessary to communicate with the device via I2C or SPI mode. There was no documentation included with the boar...

Arduino and the BMP280 Pressure Temperature Module

Image
  Arduino and the BMP280 Pressure Temperature Module Filed in Microcontrollers on Jan.18, 2019 Next up in my Arduino research is the BMP280 pressure/temperature module. This is a device manufactured by Bosch, and is ideally suited to high altitude balloon atmospheric measurements. The bmp280 datasheet has many details about the device.  Each module based on this device will have its own quirks, but they seem to generally follow the datasheet for functionality. Major differences noted between modules are the inclusion or lack of level conversion, ie 5v to 3.3v.  Since the device runs on 3.3v, if you want to use it with most Arduinos at 5v, you will need to check that the module includes a 3.3v regulator and level conversion scheme. If there is no voltage conversion on the module, you should only use it with 3.3v based Arduinos, such as the Due. The Adafruit module that I selected does include the necessary voltage conversion circuitry.  So it may be ru...

Freeduino RBBB and the SD Card Reader

Image
  Freeduino RBBB and the SD Card Reader Filed in Microcontrollers on Jan.17, 2019 The next board to be tested with the SD Card Readers is the Modern Devices RBBB (Really Bare Bones Board). This appears to be similar to the Arduino Duemilanove that we tested in a previous post, in that it uses the ATmega168 chip.  However, the RBBB does not have a built-in USB interface, nor a LED installed on pin 13. It is a small form factor, like the Arduino Nano, with pins spaced to be placed on a breadboard. I didn’t have much hope for using this board with the SD Card Readers, as the Duemilanove failed due to memory constraints. I started off with an inventory of the parts.  Everything that was promised was accounted for.   RBBB Parts I populated the board as detailed in their instructions…     Populated RBBB Then cleaned off the solder flux with alcohol.     Clean RBBB Next, pushed the board down onto my breadboard and hooked up an FTDI USB to rs-...

Arduino Due and the SD Card Reader

Image
  Arduino Due and the SD Card Reader Filed in Microcontrollers on Jan.16, 2019 The next board to test with the SD Card Readers is the Arduino Due.   Arduino Due This is a little different sort of beast, more powerful. But there are some differences with other Arduinos that can get us in trouble. Differences between DueƂ and the Mega: Microcontroller AT91SAM3X8E (Due) ATmega1280 (mega2560) Operating Voltage 3.3V 5V Input Voltage (recommended) 7-12V 7-12V Input Voltage (limits) 6-16V 6-20V Digital I/O Pins 54 (12 provide PWM output) 54 (15 provide PWM) Analog Input Pins 12 16 Analog Output Pins 2 (DAC) 0 DC input per Pin 3 – 15mA ( see chart ) 40 mA Total DC Output Current 130 mA 200 mA DC Current for 3.3V Pin 800 mA 50 mA (up to 150 mA, if no FTDI) DC Current for 5V Pin 800 mA 200 mA Flash Memory 512 KB all available for the user applications 128 KB (4 KB used by bootloader) SRAM 96 KB (two banks: 64...