Go to advanced search

by natmendes
Fri Mar 02, 2018 7:53 pm
Forum: Português
Topic: Problema com i2c - módulos com o mesmo endereço
Replies: 0
Views: 509

Problema com i2c - módulos com o mesmo endereço

Oi gente! Estou tentando usar dois sensores iguais de temperatura infravemerlhos MLX90615. Eles se comunicam por i2c. A minha ideia é que eu indique o escravo, ele pegue a informação do escravo, eu indique o outro e ele pegue a informação do outro e assim sucessivamente. Porém, eles tem o mesmo ende...
by natmendes
Fri Mar 02, 2018 7:50 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: i2c problem - two slaves with same address
Replies: 2
Views: 646

i2c problem - two slaves with same address

Hi everyone! Im trying to use two infrared temperature sensor mlx90615. They use i2c communication. My ideia is to get one temperature by second. But, as they are the same device, they have the same address, so i can not recognize from which sensor RPi is getting temperature. I dont know how to sepa...
by natmendes
Thu Jan 11, 2018 4:13 pm
Forum: C/C++
Topic: Timer that counts more than a second
Replies: 7
Views: 970

Re: Timer that counts more than a second

I'll read about that! Thank you very much!
by natmendes
Thu Jan 11, 2018 3:02 pm
Forum: C/C++
Topic: Timer that counts more than a second
Replies: 7
Views: 970

Re: Timer that counts more than a second

I've never used this. Is hard to do this on code? Can i set different durations for timer in the middle of the code?
I.e.: code must do something for 30 min, than change for 65 min, than change for 20 minutes...
by natmendes
Thu Jan 11, 2018 2:31 pm
Forum: Português
Topic: Timers que contam mais de um segundo
Replies: 1
Views: 580

Timers que contam mais de um segundo

Oi gente! Eu estou fazendo um projeto que preciso controlar diversas vezes tempos diferentes. Porém, esses tempos são grandes (tipo uma hora, por aí). Eu sei das funções setitimer ou gettimer para controlar esse tempo, mas elas contam pouco tempo (quando usei, era para controlar milisegundos). Além ...
by natmendes
Thu Jan 11, 2018 2:20 pm
Forum: C/C++
Topic: Timer that counts more than a second
Replies: 7
Views: 970

Timer that counts more than a second

I have to make a timer that counts a lot of time (like an hour). I've already made a timer using setitimer or gettimer, but for small intervals... so doesnt work for me anymore. Besides, the program should continue working while timer is counting, so i can't use sleep function. Does anyone know a fu...

Go to advanced search