Need help with fermion data logger
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
I have a question ….I am looking to try and do this same thing, but with micropython on a RP2040 pico.
Any thought?
Gavin.Pikeyou can refer to some documents about seial1: serial - Communicating Via Serial1 on Arduino Mega - Arduino Stack Exchange
jennaI got it, thank you very much for your help, you are an angel :)
Hi!
pls refer to this code:
jenna
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.
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
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); }
Asier.Iglesias