Author |
Message |
Topic: Set value of toggled OC2A pin on timer stop |
autoguider
Replies: 2
Views: 871
|
Forum: BASCOM-AVR Posted: Mon Nov 28, 2022 12:31 am Subject: Set value of toggled OC2A pin on timer stop |
I want to use timer 2 toggling the OC2A pin to modulate an IR LED by a frequency of 38 kHz on 50% dutycycle.
Starting the timer does not seem to be a problem.
Stopping is a bit a challenge because t ... |
Topic: Function declaration not accepted / var. not dimensioned/ Lo |
autoguider
Replies: 5
Views: 2657
|
Forum: BASCOM-AVR old unsupported versions Posted: Tue Nov 22, 2022 2:41 pm Subject: Function declaration not accepted / var. not dimensioned/ Lo |
Many thanks for your advice.
In Options>Environment-> Font I found the checkbox to show the special characters.
With your advised corrections I was able to get a compilation.
So far so go ... |
Topic: Function declaration not accepted / var. not dimensioned/ Lo |
autoguider
Replies: 5
Views: 2657
|
Forum: BASCOM-AVR old unsupported versions Posted: Mon Nov 21, 2022 9:52 pm Subject: Function declaration not accepted / var. not dimensioned/ Lo |
Dear All,
I declared a funtion that has no parameters and returns a byte
Declare Function Is_new_process As Byte
Here the code of the function
Function Is_new_process As Byte
... |
Topic: I2C LCD PCF8574 Adapter Library |
autoguider
Replies: 24
Views: 119648
|
Forum: Share your working BASCOM-AVR code here Posted: Sun Nov 07, 2021 11:15 am Subject: I2C LCD PCF8574 Adapter Library |
I did not specify any hardware. I just did the compilation with the LIB-Tool. |
Topic: I2C LCD PCF8574 Adapter Library |
autoguider
Replies: 24
Views: 119648
|
Forum: Share your working BASCOM-AVR code here Posted: Sat Nov 06, 2021 11:51 am Subject: I2C LCD PCF8574 Adapter Library |
Thx for the library.
I started compilation of the library Ver.002 dated 2021/05/13 with the LIB Manager tool and got following errors:
Error : 222 Line : 139 Illegal character [e ... |
Topic: Timer1 set for 8bit PWM -Pin always +5V |
autoguider
Replies: 2
Views: 658
|
Forum: BASCOM-AVR Posted: Fri Oct 08, 2021 9:21 am Subject: Timer1 set for 8bit PWM -Pin always +5V |
Dear MWS,
thanks for your comments.
I just got some new processor chips.
Now the code works. The PWM voltage behaves as it should. The MOSFETS are controlled in the proper way.
In my code exampl ... |
Topic: Timer1 set for 8bit PWM -Pin always +5V |
autoguider
Replies: 2
Views: 658
|
Forum: BASCOM-AVR Posted: Wed Oct 06, 2021 10:38 pm Subject: Timer1 set for 8bit PWM -Pin always +5V |
Dear All,
I want to control some power MOSFET in a H-Bridge.
The gate of the N-Mosfet is to be controlled by a PWM via a push-pull circuit.
For some reason the PWM outputs are set to +5V. Powerfu ... |
Topic: LCD Powertip Init? |
autoguider
Replies: 5
Views: 825
|
Forum: BASCOM-AVR Posted: Fri Sep 03, 2021 1:33 pm Subject: LCD Powertip Init? |
Dear all,
I want to run a Powertip PC1604A on a 328p.
https://www.alldatasheet.com/datasheet-pdf/pdf/78286/POWERTIP/PC1604-A.html
As I am running short on pins at the CPU I did a parallel to seri ... |
Topic: HMC5883L and QMC5883L (3 axis compass) |
autoguider
Replies: 9
Views: 7282
|
Forum: Share your working BASCOM-AVR code here Posted: Wed Jan 13, 2021 3:05 pm Subject: HMC5883L and QMC5883L (3 axis compass) |
Dear All,
I was digging into the datasheets for the MCU9250 and got lost in the complexity of this device.
https://invensense.tdk.com/wp-content/uploads/2015/02/MPU-9250-Register-Map.pdf
https://3c ... |
Topic: 5 k lookup table |
autoguider
Replies: 19
Views: 2344
|
Forum: BASCOM-AVR Posted: Wed Jan 13, 2021 12:00 am Subject: 5 k lookup table |
Hubert,
you got it absolutely right.These are the other options.
Digital compass has to be very much tilt compensated. The telescope tube may point to the zenith. This is a 90° tilt vs. the horizont ... |
Topic: 5 k lookup table |
autoguider
Replies: 19
Views: 2344
|
Forum: BASCOM-AVR Posted: Tue Jan 12, 2021 2:18 pm Subject: 5 k lookup table |
I want to control the position of the slit in the dome of my small astronomical observatory. The problem is that there are 2 telescopes based on an equatorial mount. They have a appr. 40 cm offset fro ... |
Topic: 5 k lookup table |
autoguider
Replies: 19
Views: 2344
|
Forum: BASCOM-AVR Posted: Mon Jan 11, 2021 6:16 pm Subject: 5 k lookup table |
Dear All,
for a simple solution of a complex positioning issue I am considering to use a lookup table.
It is a 2 dimensional matrix of appr. 50 x 70 word-elements ( 7-8 kbytes) to be stored in an EE ... |
Topic: Timer controlled movement of RC servo strange |
autoguider
Replies: 15
Views: 5979
|
Forum: BASCOM-AVR Posted: Fri Jan 08, 2021 2:12 pm Subject: Timer controlled movement of RC servo strange |
Dear All,
the issue was hardware based. The software is o.k.
It seems that the transistor that accepts the PW signal at the servo does not have a base resistor.
So the µP output is connected via t ... |
Topic: Timer controlled movement of RC servo strange |
autoguider
Replies: 15
Views: 5979
|
Forum: BASCOM-AVR Posted: Mon Dec 21, 2020 6:12 pm Subject: Timer controlled movement of RC servo strange |
Dear Hubert,
this is what I expected. Max. 20 mA.
I have the voltage drop on both servos.
To avoid interference from the motors to the Atmel I installed the separate 7805 + free wheeling diode on t ... |
Topic: Timer controlled movement of RC servo strange |
autoguider
Replies: 15
Views: 5979
|
Forum: BASCOM-AVR Posted: Mon Dec 21, 2020 2:05 pm Subject: Timer controlled movement of RC servo strange |
It is 17 kg cm. KUMAN KY72-1
I think that they are oversized.
When plugging in I measure 30mA at the entry of the 7805 on 12V level per servo.
In movement it takes less than 100mA.
The ripples in ... |
|