Search found 6 matches

by Zacks
Mon Sep 13, 2021 7:14 am
Forum: General Discussion and Questions
Topic: Interfacing mcp9808 temperature sensor
Replies: 1
Views: 2911

Interfacing mcp9808 temperature sensor

I am trying to interface the MCP9808 temperature sensor with OpenMV Cam, and I found this library from here https://github.com/kfricke/micropython-mcp9808 However there was no example code on how to use the library to read the temperature. This maybe simple but since I am still new to miccropython i...
by Zacks
Wed Sep 08, 2021 2:59 pm
Forum: General Discussion and Questions
Topic: RTC Time changing with SD card
Replies: 0
Views: 1608

RTC Time changing with SD card

I am interfacing an RTC with OpenMV Cam, everything is working well with the time always being accurate. However, when I inserts SD card and set the time, it will remain correct but when I disconnect the board and reconnect, the time will change. I did not experience this when I was using the board ...
by Zacks
Wed Sep 08, 2021 12:58 pm
Forum: General Discussion and Questions
Topic: Micropython local time is not correct according to the actual time
Replies: 5
Views: 1782

Re: Micropython local time is not correct according to the actual time

I have equally tried setting it over the internet using NTP function, but it does not work for me as well. My board was connected to the internet with a wifi shield. Sine I am in China, I have changed the host according to my location. It will always return Error syncing time. I don't know if there ...
by Zacks
Wed Sep 08, 2021 12:52 pm
Forum: General Discussion and Questions
Topic: Micropython local time is not correct according to the actual time
Replies: 5
Views: 1782

Re: Micropython local time is not correct according to the actual time

Thanks for your response. I have tried using this but it did not work, it always returns the same time and not the time i set it to.

Code: Select all

rtc = machine.RTC()
rtc.datetime((2020, 1, 21, 2, 10, 32, 36, 0))
print(rtc.datetime())
by Zacks
Wed Sep 08, 2021 8:42 am
Forum: General Discussion and Questions
Topic: Micropython local time is not correct according to the actual time
Replies: 5
Views: 1782

Micropython local time is not correct according to the actual time

I am trying to interface Ds3231 RTC with OpenMV Cam board, I need to set the Ds3231 RTC time using the local time. However, this is what the local time is showing 2015, 1, 1, 0, 42, 20, 3, 1. I will like to know how I can set the local time to show the exact current time. I have checked online but h...