PDA

View Full Version : Openlog MicroSD data logger module



flotulopex
- 30th January 2023, 20:19
Hello There,

Did by chance anyone out there already hookup an Openlog module to a PIC?
9304

I can't find any code example to help me getting started....

BTW, the BLK pin goes to GND and the GRN should be connected to DTR but I have no idea how to handle this signal.

flotulopex
- 30th January 2023, 20:58
Currently, I'm connected to the module via an FTDI cable to a terminal.

This works fine.

But how do I make it work with the PIC?

tumbleweed
- 30th January 2023, 23:41
...and the GRN should be connected to DTR but I have no idea how to handle this signal.
I've not used one, but from the looks of it the GRN pin is attached to the reset pin of the ATmega. By pulling this pin low, it will reset the OpenLog.
You can probably leave it unconnected (it has a pullup to 3.3V), or connect it to an output IO pin.

You would connect the module to the UART serial port of the pic and send the same commands you use in the terminal.

BTW, the Openlog is a 3.3V module, so you would have issues directly connecting it to a 5V uC or FTDI cable.

Ioannis
- 31st January 2023, 10:21
This OpenLog has on-board low drop regulator (MIC5205-3.3) and works from 3.3 up to 12Volts. Recommended 3.3-5Volt obviously for power dissipation reasons. So power is no problem to be connected to 5Volts.

But do not know if the ATMEGA328 is tolerant on 5volt at the pins having 3.3 volts on power supply.

Ioannis

tumbleweed
- 31st January 2023, 11:45
It's not, which is why I raised the issue.

Ioannis correctly points out that it has a 3.3V regulator onboard. The ATMEGA IO pins are spec'd to VCC+0.5V, so that'd be a max of 3.8V.
You'd want to use a level translator with a 5V uC, or a 3.3V FTDI cable.

flotulopex
- 31st January 2023, 16:21
...or a 3.3V FTDI cable.

Yup, this is what I'm using for now.

Still looking how to control the module via Terminal and go further (to PIC) once understood how the module really works and does.

flotulopex
- 31st January 2023, 17:13
BTW, I need send some control character in order to change his function mode.

But, it seems I'm doing something wrong.

The modules expects me to sent ctrl+z (ASCii 26) three times in a row to change its mode.

I have enable the "Parse control Characters" in the MCS Serial Communicator and sent #26 three times but nothing never happens.

In fact, I tried a lot of different ways with/without Parse option, sending ESC before the command and so. Still, nothing does.

What am I missing?

Ioannis
- 31st January 2023, 18:44
If you type the characters, then maybe you are timign out.

Maybe using the Br@y terminal (https://sites.google.com/site/terminalbpp/Terminal20141030.zip?attredirects=0&d=1) you can send at once the string of these characters.

The above terminal has a field that you can type in the characters and send clicking a button.

I suppose you have cross checked tx and rx lines are connected correctly.

Ioannis

flotulopex
- 1st February 2023, 16:40
Thanks Ioannis.

I tried the Terminal already and it doesn't work too.

The communciation with the module is working. There is an option to modifiy the "config.txt" on the SD card that allows one to modify parameters such as operating mode on startup - which I did.

9306

But the idea is to have the module launched in "logger" mode and if needed, to be able to toggle to "command" mode via control characters.

Unfortunately, this doesn't seem to work easley....

I'm contacting the guys from SparkFun and see if I can get any help there :wink:

Anyway, thanks a lot for your help.

Ioannis
- 1st February 2023, 17:13
Can you control anything through the terminal?

Ioannis

flotulopex
- 1st February 2023, 17:18
I just got one step further.

The manual says that the control character must be sent three times in a raw. Well, so I did wrongly: #26 + enter, #26 + enter and #26 + enter.

But this is how I just finally made it: #26#26#26+enter.


9310

The module's response at "logger" mode launch is "12<". Toggeling to "command" mode adds "~>".

Took me a few hours of searching but finally got there :)

...might help someone else....

flotulopex
- 1st February 2023, 17:20
Yes, I was already able to communicate with the module before by modifying the "config.txt" file on the SD card.

9311

Ioannis
- 2nd February 2023, 13:37
Well, the 26+enter is something that cannot be debuged from a distance!

I suspected that something in sending the command was not right and that is why the br@y terminal was proposed. But in that case also there would be a problem if you would not use 26 26 26 and hit then send button.

Glad you sorted out and wish you best of success wiith the rest of the experiments.

Ioannis