Troubleshooting

Need help with fermion data logger

userHead Asier.Iglesias 2023-07-14 17:18:42 277 Views8 Replies

Can someone give me a code to write "hello world" in a .txt file using the FERMION serial data logger? the example that dfrobot gives me just creates .txt files but without data. And I can't find any information on the internet about this same data logger. I need help with this to be able to log data from some sensors. Thanks

2023-10-31 21:13:18

I have a question  ….I am looking to try and do this same thing, but with micropython on a RP2040 pico.

Any thought?

userHeadPic Gavin.Pike
2023-07-18 10:41:05

you can refer to some documents about seial1: serial - Communicating Via Serial1 on Arduino Mega - Arduino Stack Exchange

userHeadPic jenna
Asier.Iglesias wrote:

I got it, thank you very much for your help, you are an angel :)

2023-07-18 17:45:13
1 Replies
2023-07-17 19:25:22

Hi!

pls refer to this code:

 

userHeadPic jenna
Asier.Iglesias wrote:

thanks for the code, but, unfortunately I still have the same error, many .txt are generated but in none of them is written "hello word". The pins used have been , VCC->5V GND->GND RX->18 (in Arduino mega is Tx) and S->6. I have also tried to take a digital pin (pin 50) and try with that but still the same problem.

2023-07-17 21:04:42
jenna wrote:

Hi!

1. pls check the baud rate. The baud rate in the code needs to be consistent with the baud rate in the config file.

2.code

3. wiring

module ——>  mega2560

 

 

RX  ——> TX0

 

 

GND ——>  GND

 

 

VCC ——>  5V

 

S  ——>  D6

 

 

 

2023-07-18 10:11:09
2 Replies
2023-07-17 18:42:59

Yeah, here you are,  as I say above is an example code that gives me dfrobot but in this case all it does is generate many .txt, what I need is to write data in them and we don't know how to do it:#define SPIN 6  //Connect to the module Pin S, trigger to save files at low level  uint16_t i = 0; void setup(void) {  Serial.begin(9600);  delay(2000);  //To aviod data lost, delay a period of time to wait for the module to start  pinMode(SPIN, OUTPUT);   digitalWrite(SPIN, HIGH); } void loop(void) {  Serial.println(String(i));  i++;  if((i % 10) == 0){    digitalWrite(SPIN, LOW);    delay(500);    digitalWrite(SPIN, HIGH);  }   delay(300); }

userHeadPic Asier.Iglesias
2023-07-14 22:15:29

Hi, can you share the code that you're using now?

userHeadPic bidrohini.bidrohini