Hi fellow Bittle and Nybble owners ! Do you want to understand better the code of OpenCat to tinker with your robot friend ? š±ā¤ļøš¶ The flavien code reviews are here for you ! They contain both concrete tutorials to apply almost without knowing how to code (like change the IR remote buttons assignment) as well as code analysis for people who already know how to code and want to quickly start tinkering.
Here the links:
1) Main structure of the code 2) IR remote buttons assignment
3) Opencat.ino code explanation
4) ... Stay tuned for more post ! Have fun ! šø
The architecture of OpenCat and now OpenCat32 (which is my main interest) has changed a lot since this post in 2021. Are there any recent (within the last year or less) walk-throughs of the new architecture?
I am wondering if maby can help me figure out whitch files to change and edit with how to edit them as i am trying to get servos to move with analog feedback from my servos. Also instead of the ir remote i want to ad Lora sx1278 for long range. I am compleat newbie to arduino advance programming. And only asking for little help. Thank you and enjoy your day
You can append āNā to the skill name and add its pointer to the pointer array. If you observe the two pointer arrays, all the skillName with the suffix āIā are skipped in the second array. After the change, you just need to do the 3 actions once. After that, you just need to save the modified instinct, then upload OpenCat.ino directly. The difference between the I and N suffix is discussed in the tutorial. An even more convenient way to test new skills is to use the serialMaster code. https://docs.petoi.com/serialmaster-user-guide You can send the skills without uploading them.
Hi, please try this short example:
https://github.com/PetoiCamp/OpenCat/blob/main/WriteInstinct/InstinctBittleShortExample.h
You need to upload WriteInstinct.ino and enter 'Y' for updating Instincts, then upload OpenCat.ino for the main functionality.
A step-by-step tutorial for creating skills can be found at https://bittle.petoi.com/11-tutorial-on-creating-new-skills.
If the Bluetooth board can appear on your daughter's phone, it's probably the app on your phone. Have you tried to quit the app from the background and reopen it?
It is a real shame there is almost no detailed information about how to program it. I installed arduino and managed to upload opencat and get it running. WriteInstinct.ino cannot be flashed alone or it stops on the "bound rate" line or bittle dangerounsly spasms into a weird position if i open serial after flashing writeinstinct.ino. opencat doesnt flash if i modify InstinctBittle.h by any means....to be honest I managed to modify and re-save the file deleting a few skills at a time. but beyond a point the file simply fails.....I'd like to have a InstinctBittle.h with a single skill but cannot get it to work, very furstrating. I also managed to edit the "zero" function and play a bit with custom positions etc, but I could not in this wolrd save a copy of it, delete all skills (consts) and leaving a single one, changing the head to 1 skill, updating the list of skills and the end......then it fails to upload, obviously.......to complete, the bluetooth board stopped being seen by my phone after playing on my phone for a couple of days....is the board broken? no, it appears and connects to my daughters phone, but it cannot be seen on mine, no matter what.......I spent around Ā£300, I love the quality, the design, the looking and how powereful it appears to be.......but for now it is unrealiable until I leanrn more. I appreciate how much work was put into it, but please, please please, focus now on posting examples, smaller instinct files so people like me can start, learn and show off what we, normal humans, can do with this amazing gadget. Thanks
This is great @Flavien Henrion ā looking forward to the rest of your posts.