Giter Site home page Giter Site logo

petoicamp / opencatesp32 Goto Github PK

View Code? Open in Web Editor NEW
71.0 10.0 26.0 1.62 MB

An ESP32-based open source quadruped robot pet framework for developing Boston Dynamics-style four-legged robots that are perfect for STEM, coding & robotics education, IoT robotics applications, AI-enhanced robotics application services, research, and DIY robotics kit development.

License: MIT License

C 44.29% C++ 55.71%
arduino esp32 kit robotics legged-robot quadruped quadruped-robot-gaits raspberry-pi simulation stem

opencatesp32's People

Contributors

borntoleave avatar jasonwong08 avatar kaimai avatar rongzhongli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

opencatesp32's Issues

Esp32

Hi
I´m learning robotics with this fantastic project.
I´m interested in Biboard and ESP32 version
In documentation i see that imu libarie need changes and you offer a modified version
The question is how to modifie the librarie or get the version that you offer
Thank you

https://docs.petoi.com/biboard/biboard-v0#3.2.2-imu

Petoi Bittle hangging on Initialize MPU

Hi, using the standard code, following the changes requested in the manual (Arduino 1.8.19 and all requested changes in code), after compiling and uploading the code to the board, Bittle hangs on "Initialize MPU".
Could you please confirm if I may be missing something?

ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x1b (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1344
load:0x40078000,len:13864
load:0x40080400,len:3608
entry 0x400805f0
Flush the serial buffer...

  • Start *
    Bittle
    Scanning I2C network...
  • I2C device found at address 0x54 !
  • I2C device found at address 0x68 !
  • done
    Initializing MPU...

If I replace the mpu6050 folder in src folder of the code by the recommended here: https://docs.petoi.com/biboard/demo-applications/6.gyro-imu-mpu6050 then the below error message is shown when compiling the code in Arduino.

'class MPU6050' has no member named 'dmpGetCurrentFIFOPacket'

Uploading the code using the Desktop tool works fine and Bittle works.

Thanks,
Leonardo

Serial port over bluetooth not working with Ubuntu or macOS but Android app working

I have a Bittle X BiBoard V0_1, and I am using the current default branch of that repo to flash the sketch.

On Android - OK

I can use the Android app after pairing my Bittle with it with no problem:

20:47:33:771 -> Pairing success!!
20:49:04:176 -> Bluetooth connected!
20:49:05:773 -> G
20:49:05:775 -> Bittle
20:49:05:775 -> B01_231206
20:49:05:775 -> ?
20:49:40:628 -> Bluetooth disconnected!

Notice that we can see the message "Bluetooth connected!" coming from the bleUart.hfile.

On macOS - FAIL

I can pair with the Bittle from a macOS M2/3 (after enabling all the macOS security for VSCode/Terminal).

In the Bittle logs I can see "Pairing success!!" but I never see a "Bluetooth connected!" message.

I can see two serial sockets /dev/tty.Bittle67_SSP and /dev/tty.Bluetooth-Incoming-Port and I can also open them but I see no message received and the one I send seems to have no effect on the Bittle.

It might not be related at all, but I also noticed this function called void readBlueSSP() that is commented in io.h.

On Ubuntu - FAIL

I am using Ubuntu 23.10. Here it seems to be something else than the issue seen on macOS, since I cannot pair the Bittle with Ubuntu.

When trying, Ubuntu shows a security popup with a PIN number which is the same as the one printed on the serial port of the Bittle. Then, when I click yes, the process hangs and ends up timing out with a failure. Looking at the Ubuntu logs, it seems to be related to authentication.

It's weird because on macOS, I don't see any popup with a PIN code.


I tried using multiple versions of ESP32 from https://github.com/espressif/arduino-esp32: 2.0.12 (the one recommended), 2.0.13 and 2.0.14.


If you have any idea what's going on or what I am doing wrong, please let me know. ping @borntoleave

Possible to use Raspberry Pi Pico?

Is it feasible to use a Raspberry Pi Pico for this project? And if it is, do you mind giving me some pointers on disabling the EEPROM and having everything hard-coded instead?

error in compiling

when i try to follow the instructions it gave me this Arduino: 1.8.19 (Windows Store 1.8.57.0) (Windows 10), Board: "Arduino Nano ESP32, With FAT partition (default), By Arduino pin (default), Normal mode (TinyUSB)"

In file included from C:\Users\IowaBIG\Documents\ArduinoData\packages\arduino\hardware\esp32\2.0.12\cores\esp32/Arduino.h:223,

             from sketch\OpenCatEsp32.ino.cpp:1:

C:\Users\IowaBIG\Documents\ArduinoData\packages\arduino\hardware\esp32\2.0.12\cores\esp32/io_pin_remap.h:25:49: error: variable or field 'analogWrite' declared void

#define analogWrite(pin, value) analogWrite(digitalPinToGPIONumber(pin), value)

                                             ^~~~~~~~~~~~~~~~~~~~~~

C:\Users\IowaBIG\Downloads\OpenCatEsp32\OpenCatEsp32\src\PetoiESP32Servo\analogWrite.h:9:8: note: in expansion of macro 'analogWrite'

void analogWrite( uint8_t APin, uint16_t AValue );

    ^~~~~~~~~~~

C:\Users\IowaBIG\Downloads\OpenCatEsp32\OpenCatEsp32\src\PetoiESP32Servo\analogWrite.h:9:29: error: expected primary-expression before 'APin'

void analogWrite( uint8_t APin, uint16_t AValue );

                         ^~~~

C:\Users\IowaBIG\Documents\ArduinoData\packages\arduino\hardware\esp32\2.0.12\cores\esp32/io_pin_remap.h:25:72: note: in definition of macro 'analogWrite'

#define analogWrite(pin, value) analogWrite(digitalPinToGPIONumber(pin), value)

                                                                    ^~~

C:\Users\IowaBIG\Downloads\OpenCatEsp32\OpenCatEsp32\src\PetoiESP32Servo\analogWrite.h:9:44: error: expected primary-expression before 'AValue'

void analogWrite( uint8_t APin, uint16_t AValue );

                                        ^~~~~~

C:\Users\IowaBIG\Documents\ArduinoData\packages\arduino\hardware\esp32\2.0.12\cores\esp32/io_pin_remap.h:25:78: note: in definition of macro 'analogWrite'

#define analogWrite(pin, value) analogWrite(digitalPinToGPIONumber(pin), value)

                                                                          ^~~~~

C:\Users\IowaBIG\Documents\ArduinoData\packages\arduino\hardware\esp32\2.0.12\cores\esp32/io_pin_remap.h:21:42: error: variable or field 'tone' declared void

#define tone(_pin, args...) tone(digitalPinToGPIONumber(_pin), args)

                                      ^~~~~~~~~~~~~~~~~~~~~~

C:\Users\IowaBIG\Downloads\OpenCatEsp32\OpenCatEsp32\src\PetoiESP32Servo\ESP32Tone.h:11:6: note: in expansion of macro 'tone'

void tone(int pin,unsigned int frequency);

  ^~~~

C:\Users\IowaBIG\Downloads\OpenCatEsp32\OpenCatEsp32\src\PetoiESP32Servo\ESP32Tone.h:11:11: error: expected primary-expression before 'int'

void tone(int pin,unsigned int frequency);

       ^~~

C:\Users\IowaBIG\Documents\ArduinoData\packages\arduino\hardware\esp32\2.0.12\cores\esp32/io_pin_remap.h:21:65: note: in definition of macro 'tone'

#define tone(_pin, args...) tone(digitalPinToGPIONumber(_pin), args)

                                                             ^~~~

C:\Users\IowaBIG\Downloads\OpenCatEsp32\OpenCatEsp32\src\PetoiESP32Servo\ESP32Tone.h:11:19: error: expected primary-expression before 'unsigned'

void tone(int pin,unsigned int frequency);

               ^~~~~~~~

C:\Users\IowaBIG\Documents\ArduinoData\packages\arduino\hardware\esp32\2.0.12\cores\esp32/io_pin_remap.h:21:72: note: in definition of macro 'tone'

#define tone(_pin, args...) tone(digitalPinToGPIONumber(_pin), args)

                                                                    ^~~~

C:\Users\IowaBIG\Documents\ArduinoData\packages\arduino\hardware\esp32\2.0.12\cores\esp32/io_pin_remap.h:21:42: error: variable or field 'tone' declared void

#define tone(_pin, args...) tone(digitalPinToGPIONumber(_pin), args)

                                      ^~~~~~~~~~~~~~~~~~~~~~

C:\Users\IowaBIG\Downloads\OpenCatEsp32\OpenCatEsp32\src\PetoiESP32Servo\ESP32Tone.h:13:6: note: in expansion of macro 'tone'

void tone(int pin, unsigned int frequency, unsigned long duration);

  ^~~~

C:\Users\IowaBIG\Downloads\OpenCatEsp32\OpenCatEsp32\src\PetoiESP32Servo\ESP32Tone.h:13:11: error: expected primary-expression before 'int'

void tone(int pin, unsigned int frequency, unsigned long duration);

       ^~~

C:\Users\IowaBIG\Documents\ArduinoData\packages\arduino\hardware\esp32\2.0.12\cores\esp32/io_pin_remap.h:21:65: note: in definition of macro 'tone'

#define tone(_pin, args...) tone(digitalPinToGPIONumber(_pin), args)

                                                             ^~~~

C:\Users\IowaBIG\Downloads\OpenCatEsp32\OpenCatEsp32\src\PetoiESP32Servo\ESP32Tone.h:13:20: error: expected primary-expression before 'unsigned'

void tone(int pin, unsigned int frequency, unsigned long duration);

                ^~~~~~~~

C:\Users\IowaBIG\Documents\ArduinoData\packages\arduino\hardware\esp32\2.0.12\cores\esp32/io_pin_remap.h:21:72: note: in definition of macro 'tone'

#define tone(_pin, args...) tone(digitalPinToGPIONumber(_pin), args)

                                                                    ^~~~

C:\Users\IowaBIG\Downloads\OpenCatEsp32\OpenCatEsp32\src\PetoiESP32Servo\ESP32Tone.h:13:44: error: expected primary-expression before 'unsigned'

void tone(int pin, unsigned int frequency, unsigned long duration);

                                        ^~~~~~~~

C:\Users\IowaBIG\Documents\ArduinoData\packages\arduino\hardware\esp32\2.0.12\cores\esp32/io_pin_remap.h:21:72: note: in definition of macro 'tone'

#define tone(_pin, args...) tone(digitalPinToGPIONumber(_pin), args)

                                                                    ^~~~

C:\Users\IowaBIG\Documents\ArduinoData\packages\arduino\hardware\esp32\2.0.12\cores\esp32/io_pin_remap.h:20:44: error: variable or field 'noTone' declared void

#define noTone(_pin) noTone(digitalPinToGPIONumber(_pin))

                                        ^~~~~~~~~~~~~~~~~~~~~~

C:\Users\IowaBIG\Downloads\OpenCatEsp32\OpenCatEsp32\src\PetoiESP32Servo\ESP32Tone.h:15:6: note: in expansion of macro 'noTone'

void noTone(int pin);

  ^~~~~~

C:\Users\IowaBIG\Downloads\OpenCatEsp32\OpenCatEsp32\src\PetoiESP32Servo\ESP32Tone.h:15:13: error: expected primary-expression before 'int'

void noTone(int pin);

         ^~~

C:\Users\IowaBIG\Documents\ArduinoData\packages\arduino\hardware\esp32\2.0.12\cores\esp32/io_pin_remap.h:20:67: note: in definition of macro 'noTone'

#define noTone(_pin) noTone(digitalPinToGPIONumber(_pin))

                                                               ^~~~

exit status 1

Error compiling for board Arduino Nano ESP32.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

i dont have any coding experience please haelp

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.