Search found 16 matches

by TheRafal
12 Jan 2022 23:35
Forum: Z-Uno
Topic: Adafruit MMA8451
Replies: 7
Views: 4543

Re: Adafruit MMA8451

Hi :)
Yep it's the first gen... I've tried porting it before you release the gen2 and now i didn't have money buy it...
Thank you for your reply, i will try to do it even if it's difficult ^^
If i bought a Gen2, what's the main difference ?
by TheRafal
08 Jan 2022 00:52
Forum: Z-Uno
Topic: Adafruit MMA8451
Replies: 7
Views: 4543

Re: Adafruit MMA8451

Hi, i'm back with my adafruit sensor. I can't use it properly... It's very frustrating. I didn't understood why the bitwise conversion make problem in reading value. Is the Z-uno chip have a different way to read bytes ? maybe the Significant Bit ? I didn't understand very well byte convertion so it...
by TheRafal
16 Jun 2021 13:17
Forum: Z-Uno
Topic: I2C Work, difficulties to understand how it work on zuno
Replies: 2
Views: 2439

Re: I2C Work, difficulties to understand how it work on zuno

I've solved my problem by setting the Stop boolean from requestFrom to false !
by TheRafal
15 Jun 2021 13:22
Forum: Z-Uno
Topic: I2C Work, difficulties to understand how it work on zuno
Replies: 2
Views: 2439

I2C Work, difficulties to understand how it work on zuno

Hi,i'm trying to get values from a slave arduino (ex: 45166667) by I2C bus but i can't get it work... I've tryed the exact script i've found here https://thewanderingengineer.com/2015/05/06/sending-16-bit-and-32-bit-numbers-with-arduino-i2c/ , the 32-bits one, but the value i get is not what i send....
by TheRafal
06 Nov 2020 21:50
Forum: Z-Uno
Topic: Adafruit MMA8451
Replies: 7
Views: 4543

Re: Adafruit MMA8451

Ok today i've test to modify the adafruit library. i remove some code inside to have just the Wire.read() values and i get some good news. Here is the original code of the read function void Adafruit_MMA8451::read(void) { // read x y z at once Wire.beginTransmission(_i2caddr); i2cwrite(MMA8451_REG_O...
by TheRafal
04 Nov 2020 11:47
Forum: Z-Uno
Topic: Adafruit MMA8451
Replies: 7
Views: 4543

Re: Adafruit MMA8451

Ok, i've tried to add pull-up resistor on I2C line but unfortunately, no changes on values... i don't understand what to do, the values sended to my other arduino is inconsistente too...
by TheRafal
04 Nov 2020 00:35
Forum: Z-Uno
Topic: Adafruit MMA8451
Replies: 7
Views: 4543

Re: Adafruit MMA8451

I've a question for the dev, is the I2C bus have a pull-up resistor ? It's maybe the problem i have
by TheRafal
02 Nov 2020 12:12
Forum: Z-Uno
Topic: Adafruit MMA8451
Replies: 7
Views: 4543

Re: Adafruit MMA8451

UP ! I've tryed different things like rebuild my wirring, read all i've found in reference about I2C on z-uno to be sure to don't miss a thing, compare library with another I2C one for Z-uno (BMP180) but i don't understand why this code work on nano and mega but not with z-uno. it's strange, it fell...
by TheRafal
29 Oct 2020 00:15
Forum: Z-Uno
Topic: Adafruit MMA8451
Replies: 7
Views: 4543

Adafruit MMA8451

Hi, i can't get my Adafruit sensor MMA8451 working properly with I2C. I've a kind of noise when reading values. i've tested the same code and wiring with a mega and a nano without troubles. Here is my code. /* Name: Zuno.ino Created: 03/03/2019 09:16:11 Author: RorshaR */ //Libraries #include <Adafr...
by TheRafal
23 Oct 2020 10:03
Forum: Z-Uno
Topic: Error when compiling custom class
Replies: 3
Views: 2420

Re: Error when compiling custom class

Hi Poly, before post here with the code a gave you, i've a full class with various field inside. I remove it one by one to test each time but error still here... For the adafruit sensor, finally i didn't use it because i don't have time for this. It's to use with the MMA8451 and it's library... with...