vincent wong
Published © GPL3+

Voice controlled door access with Picovoice and PSoc 6

With Picovoice and PSoc 6, you can speak to door access control system to get authorisation of access.

BeginnerFull instructions providedOver 1 day267
Voice controlled door access with Picovoice and PSoc 6

Things used in this project

Story

Read more

Code

inference_callback(pv_inference_t)

C/C++
inference_callback(pv_inference_t)
Error opening file.

main(void)

C/C++
Error opening file.

pv_board_init(void)

C/C++
pv_status_t pv_board_init(void) {
    cy_rslt_t result;

//    result = cybsp_init();
//    if (result != CY_RSLT_SUCCESS) {
//        return PV_STATUS_INVALID_STATE;
//    }

    result = cpu_clock_init();
    if (result != CY_RSLT_SUCCESS) {
        return PV_STATUS_INVALID_STATE;
    }

    result = cy_rgb_led_init(CYBSP_LED_RGB_RED, CYBSP_LED_RGB_GREEN, CYBSP_LED_RGB_BLUE, CY_RGB_LED_ACTIVE_LOW);
    if (result != CY_RSLT_SUCCESS) {
        return PV_STATUS_INVALID_STATE;
    }


    __enable_irq();


    uint64_t board_uuid = Cy_SysLib_GetUniqueId();
    memcpy(uuid, (const uint8_t *)&board_uuid, UUID_SIZE);


    return PV_STATUS_SUCCESS;
}

Credits

vincent wong

vincent wong

81 projects • 205 followers

Comments