We designed two versions of this project; a simple one and a portable one. The simpler version includes a teensy that gets data from the current sensors and saves that on SD card. The portable version has a battery and a charging circuit attached with it.
Make connections according to the version you are going to build. For simple version follow the connection diagram below:
If you want to make the portable version make sure that VUSB is disconnected from the first pin as we are going to power it via battery.
I made it on veroboard and it looked something like this after soldering:
2
Test SD Card Module with Teensy
Power up your teensy and sd card module, then run an example code available in SD card library like this one! This is to test all the things are working correctly.
3
Connect the sensors
Now finally, connect the sensors and write a program to write data on the SD card.