Author |
Message |
Topic: Data Transfer Between PICs - SOLVED!!! |
Gabriel
Replies: 11
Views: 495
|
Forum: General CCS C Discussion Posted: Fri Apr 11, 2025 3:34 pm Subject: Data Transfer Between PICs - SOLVED!!! |
Hi Temtronic,
sorry about that, the solution was indeed as sugested by Jeremia and Jerson.
I thought that was fairly obvious.
copying the string to and from the Struct was not being done proper ... |
Topic: Data Transfer Between PICs - SOLVED!!! |
Gabriel
Replies: 11
Views: 495
|
Forum: General CCS C Discussion Posted: Fri Apr 11, 2025 1:30 pm Subject: FROM THE BOTTOM OF MY HEART |
I would like to take a moment to thank you both for the help!
I have clean, fast data, switching processors now thanks to your help.
THANK YOUUUUU!!!!!!! |
Topic: Data Transfer Between PICs - SOLVED!!! |
Gabriel
Replies: 11
Views: 495
|
Forum: General CCS C Discussion Posted: Fri Apr 11, 2025 6:22 am Subject: Data Transfer Between PICs - SOLVED!!! |
side note: Jerson i see you are from bombay!
I used to spend all my summers(3 Months) there for 5 years! Ive been to every province in India.
learned to jugle in [spam]. mastered Table Tennis in bo ... |
Topic: Data Transfer Between PICs - SOLVED!!! |
Gabriel
Replies: 11
Views: 495
|
Forum: General CCS C Discussion Posted: Fri Apr 11, 2025 5:50 am Subject: Data Transfer Between PICs - SOLVED!!! |
Thank you Jeremia and Jerson!
I will be trying this ASAP! |
Topic: Data Transfer Between PICs - SOLVED!!! |
Gabriel
Replies: 11
Views: 495
|
Forum: General CCS C Discussion Posted: Thu Apr 10, 2025 12:35 pm Subject: Data Transfer Between PICs - SOLVED!!! |
In the code provided im casting an int32 as a float.
I have tried straight float to float, with similar results.
I tried manually writing values and still fails. |
Topic: Data Transfer Between PICs - SOLVED!!! |
Gabriel
Replies: 11
Views: 495
|
Forum: General CCS C Discussion Posted: Thu Apr 10, 2025 9:50 am Subject: Data Transfer Between PICs - SOLVED!!! |
its a regular PIC float, which i display as %3.2f as usual.
simply doing
Float#1 = Float#2;
Im not using any IEEE formats or anything, just straight CCS floats. |
Topic: Data Transfer Between PICs - SOLVED!!! |
Gabriel
Replies: 11
Views: 495
|
Forum: General CCS C Discussion Posted: Thu Apr 10, 2025 6:56 am Subject: Data Transfer Between PICs - SOLVED!!! |
Hi Guys, ive been fighting with this for a few days now. It feels like looking at Schrödinger's cat.
PREMISE:
Im building an application/board where i have 2 PICs - one handles the machine itself ... |
Topic: PID issues - with Code |
Gabriel
Replies: 15
Views: 22179
|
Forum: General CCS C Discussion Posted: Sat Jan 20, 2024 7:46 am Subject: PID issues - with Code |
Ive added a conditional to the Error calculation.
Basically if im with 0 to 2 counts away from the setpoint just make error =0.
Good enough = 0 error jajajaj
So basically starting from 0 if i set ... |
Topic: PID issues - with Code |
Gabriel
Replies: 15
Views: 22179
|
Forum: General CCS C Discussion Posted: Thu Jan 18, 2024 8:25 am Subject: PID issues - with Code |
i was calling my compute function within the TMR2 ISR which was executing at 8.2ms more or less.
othertimes in dispair i would call Compute_PID() from within the main loop and nothing else... and t ... |
Topic: PID issues - with Code |
Gabriel
Replies: 15
Views: 22179
|
Forum: General CCS C Discussion Posted: Thu Jan 18, 2024 7:33 am Subject: PID issues - with Code |
That makes sense... i may be atributing super powers to PID.
However i see in youtube plenty people reaching precision with similar hardware.
How can i test this?
Should i set this to accept valu ... |
Topic: PID issues - with Code |
Gabriel
Replies: 15
Views: 22179
|
Forum: General CCS C Discussion Posted: Thu Jan 18, 2024 6:51 am Subject: PID issues - with Code |
PWM has to run from fosc/4... so im at the lowest feasable PWM freq. Which impacts my execution time clock so, slower loop times too.
I know its possible to go lower with other osc configurations b ... |
Topic: PID issues - with Code |
Gabriel
Replies: 15
Views: 22179
|
Forum: General CCS C Discussion Posted: Thu Jan 18, 2024 6:16 am Subject: PID issues - with Code |
Ive played for hours with the P/D gains... keeping Integral at 0.
Ajusting loop times too...when semi acceptable peformance is achieved i add some integral... more.hours... no improvement.
Is my m ... |
Topic: PID issues - with Code |
Gabriel
Replies: 15
Views: 22179
|
Forum: General CCS C Discussion Posted: Wed Jan 17, 2024 6:04 pm Subject: PID issues - with Code |
higher/better power supply did not bring any changes... it settles a bit faster, and the motor gets a bit warm when oscilating.
im having the same behaviour, just faster jejejeje... |
Topic: PID issues - with Code |
Gabriel
Replies: 15
Views: 22179
|
Forum: General CCS C Discussion Posted: Wed Jan 17, 2024 4:17 pm Subject: PID issues - with Code |
Im gonna run this again with a 24V psu:
https://www.mouser.com/ProductDetail/MEAN-WELL/SE-1000-24?qs=4Ewz1atfbqKd24YTAQMbSQ%3D%3D
The one on the link to be specific... should be enough to run a ... |
Topic: 18F57Q84 - which CAN driver to use ? |
Gabriel
Replies: 2
Views: 7176
|
Forum: General CCS C Discussion Posted: Tue Jan 16, 2024 4:55 pm Subject: 18F57Q84 - which CAN driver to use ? |
im using a
PIC18F47Q84 with
#include "can-pic18_fd.c"
and a SN65HVD235DR driver with great success...
configuring is a bit tricky but i think it was more a learning curve than it bei ... |
|