GPRS_C_SDK icon indicating copy to clipboard operation
GPRS_C_SDK copied to clipboard

Full project using the A9G - mail notifier (not an issue, but could help with project design)

Open ZakKemble opened this issue 5 years ago • 8 comments

This isn't an issue, but it could help people with their firmware and hardware designs for the A9/A9G. I've made a mail notifier using the A9G that sends JSON data to a web server when triggered. It also has a BME280 which communicates with the module via I2C, uses UART to communicate with an ATtiny402 microcontroller and can last for around 4-5 years on a single charge of a 10440 lithium battery (~320mAh). It also has a GPS tracker mode, and has hardware for controlling power to an active GPS antenna.

https://github.com/zkemble/MailboxNotifier

https://blog.zakkemble.net/remote-mail-notifier-and-gps-tracker/

mailnotifier1

ZakKemble avatar Jan 08 '20 19:01 ZakKemble

Looks decent! You could try doing the same with my micropython port.

pulkin avatar Jan 26 '20 19:01 pulkin

Great project thanks for sharing.
Hope to learn from it. Thanks :)

Pasboe avatar Jan 29 '20 06:01 Pasboe

this looks great. when you were using the I2C from the A9G did you have to send all data i byte at a time or could you send through an array of items...

I'm trying to use I2C to communicate to a RTC module and althoguh i can request data i cannot set the current datetime on it

medida avatar Jan 29 '20 09:01 medida

@medida I used I2C_Transmit() and I2C_Receive() to transfer multiple bytes at a time, see https://github.com/zkemble/MailboxNotifier/blob/master/firmware/a9g/src/bme280.c

ZakKemble avatar Jan 29 '20 19:01 ZakKemble

@zkemble thanks - the I2C Transmit is much better code than the demo code from Ai-Thinker.. Not only was my code not functioning fully - a connection on my breadboard was faulty :(

medida avatar Jan 31 '20 10:01 medida

Got I2C working thanks to @zkemble but it took me to long to learn how to use the API's. Loaded the AT firmware and hooked up a ATMega328 (TQFP body). Now after a few hours programming I have low power mode (0,22uA), triggers, SMS, RTC and store settings into EEPROM. I'm happy now :)

Pasboe avatar Feb 07 '20 17:02 Pasboe

Sorry for sending the code @Pasboe been busy busy week.

So are you using an atmega to control the rtc which then wakes the pudding?

medida avatar Feb 07 '20 18:02 medida

@zkemble Do you have a simple code about connect and get temperature data from the Adafruit_MLX90614 temperature sensor with the A9G development board Can you help me please?

AhmadBl avatar Mar 13 '21 21:03 AhmadBl