Question about installed package.

General discussion on mikroPascal PRO for AVR.
Post Reply
Author
Message
mikroSeven
Posts: 154
Joined: 14 Mar 2016 10:24
Contact:

Question about installed package.

#1 Post by mikroSeven » 10 Mar 2019 15:56

Hi,

by using Package Manager, I've extracted the servo click mikropAscal PRO for AVR ( lisenced and activated).

https://libstock.mikroe.com/projects/vi ... ervo-click



Things look fine, you can see on t the left of the screen that "Servo_AVR_LT" has been add to Libary manager.

I hope the picture show all clear.
What am i doing wrong?

Kind regards. Marcel.
Attachments
mP servo package.jpg
mP servo package.jpg (485.8 KiB) Viewed 3567 times
To DIY or not to DIY

User avatar
jovana.medakovic
mikroElektronika team
Posts: 986
Joined: 18 Dec 2018 10:36

Re: Question about installed package.

#2 Post by jovana.medakovic » 11 Mar 2019 10:39

Hello,

Unfortunately, mikroSDK is not compatible with ATMEGA328P MCU.
Can you tell me which development board you are using?

On our GitHub, you can find the source code of your click board, so you can write your project without using SDK:
https://github.com/MikroElektronika/Servo_click

Kind regards,
Jovana

mikroSeven
Posts: 154
Joined: 14 Mar 2016 10:24
Contact:

Re: Question about installed package.

#3 Post by mikroSeven » 11 Mar 2019 20:38

Tnx.

I'm using an Arduino UNO 328p board.

Correct me when I'm wrong but the package manager shows:
servo pictA.png
servo pictA.png (87.56 KiB) Viewed 3553 times

I'm able to open 3 source files,. but still:
servo pictB.png
servo pictB.png (124.92 KiB) Viewed 3553 times



Thanks in advance, I appreciate your help!
To DIY or not to DIY

User avatar
jovana.medakovic
mikroElektronika team
Posts: 986
Joined: 18 Dec 2018 10:36

Re: Question about installed package.

#4 Post by jovana.medakovic » 12 Mar 2019 10:14

Hello,

You need to install mikroSDK for your compiler:
https://libstock.mikroe.com/projects/view/2249/mikrosdk

However, when you open that and go easyavr_v7_generic -> Dependency, you can see that your MCU is not checked, so you cannot use SDK for this MCU.

In the last answer, I sent you source code so you can write your project without using SDK.

Kind regards,
Jovana
Attachments
ATmega328P.png
ATmega328P.png (103.82 KiB) Viewed 3548 times

mikroSeven
Posts: 154
Joined: 14 Mar 2016 10:24
Contact:

Re: Question about installed package.

#5 Post by mikroSeven » 12 Mar 2019 16:09

Thank you very much!

Installed mikroSDK, I think I understand it now!




In "C:\..\mikroBus Definition API\Uses" are *.mpas files, wich contain code/declarations ( opened in wordpad ).

Tnx agian, I really appreciate!
For me personal it's hard to understand about all the files and the locations of these files!
Lot's of things going on, before the actual programming starts. Not a problem of mikroE or any other but of me!
To DIY or not to DIY

mikroSeven
Posts: 154
Joined: 14 Mar 2016 10:24
Contact:

Re: Question about installed package.

#6 Post by mikroSeven » 25 Mar 2019 19:12

Hi,

tried a lot of things but I don't manage to get it work.
Proberly my aproach is wrong.

Can anyone give me a push in the right direction?

Thanks in advance.
To DIY or not to DIY

User avatar
jovana.medakovic
mikroElektronika team
Posts: 986
Joined: 18 Dec 2018 10:36

Re: Question about installed package.

#7 Post by jovana.medakovic » 26 Mar 2019 17:29

Hello,

You can look at this link:
https://learn.adafruit.com/16-channel-p ... r?view=all

Our Servo click board uses PCA9685 and on the link above you can see how to use it on Arduino and there you can find a code for Arduino.
I believe it will help you.

Also, I sent you the source code, so you can write your project for Arduino.

Kind regards,
Jovana

mikroSeven
Posts: 154
Joined: 14 Mar 2016 10:24
Contact:

Re: Question about installed package.

#8 Post by mikroSeven » 28 Mar 2019 10:59

Thanks for you help/code etc.

I'm not able to get it work, for now on the software i2c is too mucht for me.

For the time being, gonna code myself a servocontrol for a handfull of servo's, using timers/counterss/ISR etc.


Off Topic:

2 years ago, jumped into world of microcontrollers
and now I'm understanding/coding/learning:
(with my TurboPascal background)


I/O
ADC
SUART ( from/to pc-lazarus)
ISR
LCD (e.g. 2x16)
tcu ( using my own code/lib)
2812b ledstrips
etc

Thank you, mikroE :D
To DIY or not to DIY

mikroSeven
Posts: 154
Joined: 14 Mar 2016 10:24
Contact:

Re: Question about installed package.

#9 Post by mikroSeven » 28 Mar 2019 21:40

Some issues to solve but got servo's at refresh rate of 50Hz and SignalHigh variating between 1ms and 2ms.

In the future, I will go on with the twi/software-i2c, for now on, got servo's working for project.


Kind regards. Marcel
UNO 6servos.jpg
UNO 6servos.jpg (174.37 KiB) Viewed 3469 times
To DIY or not to DIY

mikroSeven
Posts: 154
Joined: 14 Mar 2016 10:24
Contact:

Re: Question about installed package.

#10 Post by mikroSeven » 02 Apr 2019 11:36

Just noticed the ATmega2560 is in the list!
To DIY or not to DIY

Post Reply

Return to “mikroPascal PRO for AVR General”