Skip to content

ThingPulse/epulse-feather-c6-samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ThingPulse ePulse Feather C6

Sample projects for ThingPulse ePulse Feather C6 ePulse C6

Sample Projects

To build and run these sample projects follow these steps:

  1. Install VS Code and install Platformio
  2. Checkout this repository and open it in VS Code
  3. Select the sample project by clicking on env section in the footer: Environment Selector
  4. Build and flash the sample by clicking on the right arrow in VS Code footer: Build & Flash
  5. Turn on serial monitor by clicking on the plug symbol: Monitor

Fuel Gauge Simple

This example shows how to use the MAX17048 fuel gauge chip.

  1. Preparation: connect a LiPo battery to the ePulse Feather C6. Make sure polarity of the battery is correct-
  2. Select env:fuel-gauge-simple to run this example. The ESP32-C6 connects to the MAX17048 chip and reads battery voltage, state of charge (SoC) and change rate

Links

Fuel Gauge WiFi

This example shows how to use the MAX17048 fuel gauge chip. In addition to the previous example this code sends the battery voltage and the SoC to the given HTTP server. We used a node-red instance with http node to receive the values

  1. Preparation: connect a LiPo battery to the ePulse Feather C6. Make sure polarity of the battery is correct-
  2. Select env:fuel-gauge-wifi to run this example. The ESP32-C6 connects to the MAX17048 chip and reads battery voltage, state of charge (SoC) and change rate
  3. Adjust WiFi ssid and password in main-fuel-gauge-wifi.cpp
  4. Adjust host and port in the same file
  5. Setup http server to receive GET requests

Here is an example flow of node red. It receives requests under /epulsec6, converts them and sends the message to influx: Monitor

Content of the convert message node

let payload = {};

payload.vBat = Number(msg.req.query.voltage);
payload.soc = Number(msg.req.query.soc);

let values = payload;
let tags = {};
tags.name = "epulse feather c6";
msg.payload = [values, tags];
return msg;

About

Sample projects for ThingPulse ePulse Feather C6

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published