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 );
}
servo_click Mikrobus2
- stefan.filipovic
- mikroElektronika team
- Posts: 1135
- Joined: 18 Dec 2018 10:30
Re: servo_click Mikrobus2
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,
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ć
Re: can I use servo_click libraries without mikrobus , I only want to configure my pins
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
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
- IvanJeremic
- mikroElektronika team
- Posts: 316
- Joined: 05 Sep 2022 14:32
Re: servo_click Mikrobus2
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.
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.