Author |
Message |
Topic: Fuzzy Yacht Autopilot |
Per Svensson
Replies: 10
Views: 555
|
Forum: Share your working BASCOM-AVR code here Posted: Mon Mar 04, 2024 11:11 pm Subject: Fuzzy Yacht Autopilot |
https://www.youtube.com/watch?v=3-NiZPbkr7A
That guy is a good teacher. rather funny too, certainly know what he is talking about
I got a good recap of GA which was good since I have not been into ... |
Topic: Fuzzy Yacht Autopilot |
Per Svensson
Replies: 10
Views: 555
|
Forum: Share your working BASCOM-AVR code here Posted: Mon Mar 04, 2024 5:11 pm Subject: Fuzzy Yacht Autopilot |
Hi Snipsnip
I followed the lecture to get some understanding of the Fuzzy control principle, and found it very amusing (or how I should put it..)
The Fuzzification part is straightforward (well, ... |
Topic: Fuzzy Yacht Autopilot |
Per Svensson
Replies: 10
Views: 555
|
Forum: Share your working BASCOM-AVR code here Posted: Wed Feb 21, 2024 3:16 pm Subject: Fuzzy Yacht Autopilot |
By the way...
I did try an simple type of AI for PID parameter optimisation when I was up to it.
I tried a method called "Genetic Algorithms". It is a technique that mimics the natural evolution o ... |
Topic: Fuzzy Yacht Autopilot |
Per Svensson
Replies: 10
Views: 555
|
Forum: Share your working BASCOM-AVR code here Posted: Wed Feb 21, 2024 1:36 pm Subject: Fuzzy Yacht Autopilot |
Hi Snipsnap,
I worked on an autopilot for my 10m sailboat some years ago.
Unfortunately I can not guide you along the Fuzzy road as I know nothing about it. Mine was based in PID.
I learnt that ... |
Topic: RC5 transmitting as a background process |
Per Svensson
Replies: 15
Views: 952
|
Forum: Share your working BASCOM-AVR code here Posted: Fri Jan 26, 2024 10:06 am Subject: RC5 transmitting as a background process |
Hello EDC,
Interesting!
Not just that you can analyse the OBJ file to find active registers, but also that you chose to compile without NOSAVE.
Why are you doing that? Obviously some extra regs a ... |
Topic: RC5 transmitting as a background process |
Per Svensson
Replies: 15
Views: 952
|
Forum: Share your working BASCOM-AVR code here Posted: Thu Jan 25, 2024 7:46 pm Subject: RC5 transmitting as a background process |
Thanks Ian,
AVR assembler is certainly not my cup of tea.
But sometimes I wish it was...
(I updated the posts above to get it right for other readers who else might copy the wrong code)
/P : ... |
Topic: RC5 transmitting as a background process |
Per Svensson
Replies: 15
Views: 952
|
Forum: Share your working BASCOM-AVR code here Posted: Thu Jan 25, 2024 6:16 pm Subject: RC5 transmitting as a background process |
Thanks Mark,
The simulator register listbox will highlight registers that are candidates for push and pop. (see below)
So in this case saving reg 16 24 26 and 27 should be enough. Right?
And it s ... |
Topic: RC5 transmitting as a background process |
Per Svensson
Replies: 15
Views: 952
|
Forum: Share your working BASCOM-AVR code here Posted: Thu Jan 25, 2024 3:53 pm Subject: RC5 transmitting as a background process |
Is there any way one can se what registers are used in a certain routine?
Using NOSAVE for a interrupt routine is hard when not knowing what to push and pop in the ISR
/Per |
Topic: RC5 transmitting as a background process |
Per Svensson
Replies: 15
Views: 952
|
Forum: Share your working BASCOM-AVR code here Posted: Thu Jan 25, 2024 2:46 pm Subject: RC5 transmitting as a background process |
Thanks Mark!
Hope it can come in handy for someone.
I am aware that the interrupt routine is creating a burden on the CPU as it is called so often (Carrier frequency)
It would be much more efficien ... |
Topic: RC5 transmitting as a background process |
Per Svensson
Replies: 15
Views: 952
|
Forum: Share your working BASCOM-AVR code here Posted: Wed Jan 24, 2024 8:33 pm Subject: RC5 transmitting as a background process |
The upper curve is the actual IR-signal where "fat parts" is where the carrier is active.
The middle curve is the data bit sequence for Two Startbits + Togglebit=0 + Address=&H5 + Command=&H3 ... |
Topic: RC5 transmitting as a background process |
Per Svensson
Replies: 15
Views: 952
|
Forum: Share your working BASCOM-AVR code here Posted: Wed Jan 24, 2024 8:31 pm Subject: RC5 transmitting as a background process |
Receiving RC5 code from an infrared transmitter is well supported in BASCOM, but sending is a foreground process that will hold up the CPU for 25ms,
which can be too much for some applications.
The ... |
Topic: Genaral graphic routines for text and pictures |
Per Svensson
Replies: 0
Views: 389
|
Forum: BASCOM-AVR Posted: Wed Dec 13, 2023 5:21 pm Subject: Genaral graphic routines for text and pictures |
Hi
I have had an old flip type display on the shelf for many years, and now a took some time to write an interface for it.
Running on my Xduino board with an Xmega plus several sensors and an RTC ... |
Topic: AVR CPU numeric benchmark |
Per Svensson
Replies: 0
Views: 7102
|
Forum: Share your working BASCOM-AVR code here Posted: Mon Oct 23, 2023 11:50 am Subject: AVR CPU numeric benchmark |
I happened to dig up an old benchmark I wrote many years ago.
I think it could still be useful for many Bascom programmers to see what CPU-time is used for various math operations.
It is especially ... |
Topic: AVR numeric benchmark |
Per Svensson
Replies: 0
Views: 6898
|
Forum: Share your working BASCOM-8051 code here Posted: Sat Oct 21, 2023 11:54 pm Subject: AVR numeric benchmark |
I happened to dig up an old benchmark I wrote many years ago.
I think it could still be useful for many Bascom programmers to see what CPU-time is used for various math operations.
It is especially ... |
Topic: Entering data to a DATA statement |
Per Svensson
Replies: 5
Views: 9380
|
Forum: BASCOM-AVR Posted: Wed Oct 18, 2023 2:55 pm Subject: Entering data to a DATA statement |
Ok, but what if the variable is a DWORD ?
Should there still be an & as suffix? (&H123456&)
Or simply &H123456 |
|