Author |
Message |
Topic: receiving data on pic16F from an accelerometer MPU6050 |
AKA TENDO
Replies: 86
Views: 195749
|
Forum: General CCS C Discussion Posted: Fri Nov 17, 2023 2:19 pm Subject: receiving data on pic16F from an accelerometer MPU6050 |
Hi everybody. First, i would say thank you to all of you guys who helped me for my project. It kind or worked i just had other problems but i have mainly reached my goal. I just realised that i forgot ... |
Topic: receiving data on pic16F from an accelerometer MPU6050 |
AKA TENDO
Replies: 86
Views: 195749
|
Forum: General CCS C Discussion Posted: Mon Feb 20, 2023 10:03 am Subject: receiving data on pic16F from an accelerometer MPU6050 |
It's an equivalent to atan2, not atan.
ok, so i've checked your link, i just don't understand properly those lines :
//Now approximation for atan from -1 to +1, giving an answer in degre ... |
Topic: receiving data on pic16F from an accelerometer MPU6050 |
AKA TENDO
Replies: 86
Views: 195749
|
Forum: General CCS C Discussion Posted: Mon Feb 20, 2023 10:02 am Subject: receiving data on pic16F from an accelerometer MPU6050 |
It's an equivalent to atan2, not atan.
ok, so i've checked your link, i just don't understand properly those lines :
//Now approximation for atan from -1 to +1, giving an answer in degre ... |
Topic: receiving data on pic16F from an accelerometer MPU6050 |
AKA TENDO
Replies: 86
Views: 195749
|
Forum: General CCS C Discussion Posted: Mon Feb 20, 2023 2:48 am Subject: receiving data on pic16F from an accelerometer MPU6050 |
Hello, i hope you are all going well. I am back on project and i wanna try to use better the "atan" function in purpose to reduce the space used. One of you told me there is exemple in code ... |
Topic: receiving data on pic16F from an accelerometer MPU6050 |
AKA TENDO
Replies: 86
Views: 195749
|
Forum: General CCS C Discussion Posted: Wed Feb 01, 2023 2:24 pm Subject: receiving data on pic16F from an accelerometer MPU6050 |
simply said...
ERRORS is for incoming (receive) data To the PIC.
Without it, the PIC HW UART will 'freeze' (stop) the PIC from running
Think of the incoming buffer as your mailbox, that can onl ... |
Topic: receiving data on pic16F from an accelerometer MPU6050 |
AKA TENDO
Replies: 86
Views: 195749
|
Forum: General CCS C Discussion Posted: Tue Jan 31, 2023 3:31 am Subject: receiving data on pic16F from an accelerometer MPU6050 |
You have a #USE RS232, and printf's shown in what you have posted.
Ok i see, so ERROR is only for my printf on terminal? |
Topic: receiving data on pic16F from an accelerometer MPU6050 |
AKA TENDO
Replies: 86
Views: 195749
|
Forum: General CCS C Discussion Posted: Tue Jan 31, 2023 2:59 am Subject: receiving data on pic16F from an accelerometer MPU6050 |
Because that is what 'ERRORS' applies to.
Yes but im only using i2c in my project. |
Topic: receiving data on pic16F from an accelerometer MPU6050 |
AKA TENDO
Replies: 86
Views: 195749
|
Forum: General CCS C Discussion Posted: Tue Jan 31, 2023 2:38 am Subject: receiving data on pic16F from an accelerometer MPU6050 |
'ERRORS', shoukd always be used when using the hardware UART, unless
you add your own error trapping and recovery to the ISR. Not using it
is criminal/stupid. I have a personal 'moan' that a lot of ... |
Topic: receiving data on pic16F from an accelerometer MPU6050 |
AKA TENDO
Replies: 86
Views: 195749
|
Forum: General CCS C Discussion Posted: Mon Jan 30, 2023 5:54 pm Subject: receiving data on pic16F from an accelerometer MPU6050 |
re: i tried my project today with my current code and one actuator and it worked almost perfectly.
ALMOST perfectly is NOT 'good enough'.
It needs to be 100% perfect, do 1 million operations and ... |
Topic: receiving data on pic16F from an accelerometer MPU6050 |
AKA TENDO
Replies: 86
Views: 195749
|
Forum: General CCS C Discussion Posted: Mon Jan 30, 2023 2:59 pm Subject: receiving data on pic16F from an accelerometer MPU6050 |
Hi all, thank you for your answers. I really keep what you all say in my mind but the thing is that my project work properly like i did. I guess all you said were supposed to help me and it will! but ... |
Topic: receiving data on pic16F from an accelerometer MPU6050 |
AKA TENDO
Replies: 86
Views: 195749
|
Forum: General CCS C Discussion Posted: Sun Jan 29, 2023 4:06 pm Subject: receiving data on pic16F from an accelerometer MPU6050 |
some comments....
1st, you need to add SMBUS to the #use I2C(.... options.... ) though you should really have 5V<>3V interface logic translators.
2nd, relocate ALL 'math' operations from ... |
Topic: receiving data on pic16F from an accelerometer MPU6050 |
AKA TENDO
Replies: 86
Views: 195749
|
Forum: General CCS C Discussion Posted: Sun Jan 29, 2023 3:33 pm Subject: receiving data on pic16F from an accelerometer MPU6050 |
No, that PIC is more than fast enough ! I ran 3DOF helicopters in realtime over the internet a decade ago,using servos and encoders,so it IS capable of your project.
Please post your current progra ... |
Topic: receiving data on pic16F from an accelerometer MPU6050 |
AKA TENDO
Replies: 86
Views: 195749
|
Forum: General CCS C Discussion Posted: Sun Jan 29, 2023 2:59 pm Subject: receiving data on pic16F from an accelerometer MPU6050 |
re: You can use i2c burst even if you don't use the FIFO Buffer
in a word ... NO
From the quick read I've done.... I2C burst mode allows the host to access several bytes of the FIFO buffer within th ... |
Topic: receiving data on pic16F from an accelerometer MPU6050 |
AKA TENDO
Replies: 86
Views: 195749
|
Forum: General CCS C Discussion Posted: Sun Jan 29, 2023 12:06 pm Subject: receiving data on pic16F from an accelerometer MPU6050 |
As Mr. Temtronic said, it is a potential problem. It might be, but then again it might not. But it is best to avoid even the possibility something can interfere with your transfers. Imagine a situatio ... |
Topic: receiving data on pic16F from an accelerometer MPU6050 |
AKA TENDO
Replies: 86
Views: 195749
|
Forum: General CCS C Discussion Posted: Sun Jan 29, 2023 11:25 am Subject: receiving data on pic16F from an accelerometer MPU6050 |
That would be nice :-). Yes, that is why.
Ok thank you. I didn't know that, so when we do like i did the PIC doesn't have time to do both things that i ask him to do? Is this the only problem wit ... |
|