Kudly

The new generation of connected cuddly bears

AdvancedShowcase (no instructions)404
Kudly

Things used in this project

Hardware components

STM32F427
×1
VS1063
×1
AMW006
×1
CX07W
×1
MCP9804
×1
MPU9150
×1
NX2520SA
×1
OV2640
×1
XC6204
×1
EKMB1301111K
×1

Story

Read more

Schematics

PCB

Kudly's PCB with components name

Code

Main code

C/C++
Initializes all the componants on the card and starts all the threads.
#include "ch.h"
#include "hal.h"
#include "wifi.h"
#include "led.h"
#include "usb_serial.h"
#include "shell_cfg.h"
#include "sd_perso.h"
#include "sccb.h"
#include "wifi_manager.h"
#include "hug_sensors.h"
#include "hand_sensors.h"
#include "codec.h"
#include "camera.h"
#include "wifi_manager.h"
#include "imu.h"
#include "temperature.h"
#include "i2c_perso.h"
#include "ext_init.h"
#include "pir.h"
#include "application.h"

int main(void) {

    halInit();
    chSysInit();

    /* Initialize the serial over usb */
    initUsbSerial();

    /* Initialize shell */
    shellPersoInit();

    /* Initialize SD card */
    sdPersoInit();

    /* Led initialization */
    ledInit();

    /* Init sccb */
    sccbInit();

    /* DCMI init */
    cameraInit();

    /* Read wifi by usart */
    usartRead();

    /* Initialize wifi */
    wifiInitByUsart();

    /* Init ADC hug sensors */
    initHugSensors();

    /* Init ADC hand sensors */
    initHandSensors();

    /* Init codec */
    codecInit();

    /* Init i2c bus */
    i2cPersoInit();

    /* IMU init */
    imuInit();

    /* Init temperature sensor */
    temperatureInit();

    /* Initialize Ext */
    extPersoInit();

    /* Pir initialization */
    pirInit();

    /* Initializes the application */
    applicationInit();

    chThdSleepMilliseconds(TIME_INFINITE);
    return 0;
}

Credits

Alexis Polti

Alexis Polti

7 projects • 5 followers
DAuffret

DAuffret

1 project • 5 followers
Julien Romero

Julien Romero

1 project • 3 followers
Antoine2

Antoine2

1 project • 2 followers
Marc Beillevaire

Marc Beillevaire

1 project • 2 followers
DimitriTuaz

DimitriTuaz

1 project • 4 followers
Samuel Tardieu

Samuel Tardieu

7 projects • 5 followers

Comments