Hi all,
So I made this topic to give an example what I'm building and make sure I'm doing everything properly
so please feel free to tell me if I'm wrong in some steps and how could I make it better to work.
Ok, so what I'm trying to build is a big dataloger with multiple sensors like, GPS, Barometer, Gyro, Temp and other useful sensors, now as i understand each sensor works on his own frequensy or delay
but I need some sensors to work on a exact delay like 400ms..etc in the other way the GPS works at 1000ms which is a nice delay to give data without errors or extra trash on my datalog.
Because I have several sensors and i wanna make them work on different speeds (delay's) I have multiple
ATmegas but to make a dataloger I need to connect the ATmegas thru I2C, which gonna give me the ability to send the data from each sensor from Slave to Master and I'm thinking to have approx: 4~6 ATmegas connected.
Now the I2C have the ability to connect multiple sensors and (Master/Slaves) but for that I need to give each ATmega an address to communicate to each other, about the sensors (needed or no needed to declair addresses?) I can hook up the sensors on a I2C and call the sensor with the exact library example on a Slave ATmega. After all that each Slave will have their own speeds (delays) and sensors to work as accurate as possible and send data to master to save them on a SD Card.
So as you understand from the above example of what I'm building I'm gonna have almost everything
connected on I2C (SCL, SDA).
I call myself a beginner because I'm in the process of learning and I need to perfectionate my
knowledge from theories in practice.
Questions:
- How fast can data be send thru I2C without problems?
- Will be a problem if i don't put pullup resistors?
- How much data I can transfer and save on ATmega/Dataloger/Master without being slowed
down or crash because (of low Ram) ? - Do I really need to declair sensors addresses if I only call them in a single ATmega Slave?
- I should send the data from Slaves to Master on different delays or they need to be in the same
time/speed?
This is my 1st big project for myself mostly to understand and learn and which I need to
perfectionate and make it work without problems.
Pleas understand this is not a Homework or asking some other people to do it for me, this is a Topic
which I made to get some help in some steps which I maybe don't understand yet and can make them better.
Thanks,
Domino60