servo_click Mikrobus2

General discussion on mikroC PRO for PIC.
Post Reply
Author
Message
joquinha
Posts: 7
Joined: 04 Jul 2012 11:49

servo_click Mikrobus2

#1 Post by joquinha » 08 Jun 2020 19:23

hello,

I trying to use servo click on mikrobus2 but don't work, on microbus1 work well.
board easypic8
the code

void systemInit()
{
mikrobus_gpioInit( _MIKROBUS2, _MIKROBUS_CS_PIN, _GPIO_OUTPUT );
mikrobus_i2cInit( _MIKROBUS2, &_SERVO_I2C_CFG[0] );

}

void applicationInit()
{
servo_i2cDriverInit( (T_SERVO_P)&_MIKROBUS2_GPIO, (T_SERVO_P)&_MIKROBUS2_I2C, 0x40, 0x14 );
servo_init( 0, 180, _SERVO_DEFAULT_LOW_RESOLUTION, _SERVO_DEFAULT_HIGH_RESOLUTION );
servo_setVref( _SERVO_VREF_3300 );
servo_setMode( _SERVO_REG_MODE_1, _SERVO_MODE1_RESTART_ENABLE | _SERVO_MODE1_USE_ALL_CALL_ADR );
servo_sleep();
servo_setFREQ( 30 ); // 50 Hz
servo_setMode( _SERVO_REG_MODE_1,_SERVO_MODE1_RESTART_ENABLE| _SERVO_MODE1_AUTO_INCREMENT_ENABLE | _SERVO_MODE1_USE_ALL_CALL_ADR );
}

User avatar
stefan.filipovic
mikroElektronika team
Posts: 1135
Joined: 18 Dec 2018 10:30

Re: servo_click Mikrobus2

#2 Post by stefan.filipovic » 15 Jun 2020 14:10

Hi,

Could you please provide us with more details? Which MCU are you using?
Have you checked if the pinout for mikroBUS2 is defined properly in the xxx_GPIO.c file of your mikroSDK board def?

Kind regards,
Stefan Filipović

kumar123
Posts: 68
Joined: 17 Oct 2023 07:32

Re: can I use servo_click libraries without mikrobus , I only want to configure my pins

#3 Post by kumar123 » 18 Nov 2023 09:24

Hi,
I am using servo click library for pic16f1526 micro-controller. i don't want to use any kind of development board. I am only using PIC16F1526 micro controller and PCA985 module to use these library, but I am not able to make communication between these boards.

Regards
Himanshu

User avatar
IvanJeremic
mikroElektronika team
Posts: 316
Joined: 05 Sep 2022 14:32

Re: servo_click Mikrobus2

#4 Post by IvanJeremic » 20 Nov 2023 08:57

Hi,

Since we are already having this discussion on the forum in the link below, i ask you to not post on other forums and continue our conversation there.
viewtopic.php?f=88&t=80294&p=317727#p317727

Regards,

Ivan.

Post Reply

Return to “mikroC PRO for PIC General”