𓁟 host1.bitchan.one

𓀐 @kte+3ftv: Last Threads: https://warosu.org/diy/?task=search2&search_username=artbyrobot To begin: the project goal: I am working to make a series of humanoid robots. I am using a Biblical theme of naming the first 3 robots I make Adam, Eve, and Abel. The goal is for these robots to have human body inspired musculoskeletal systems, advanced AI, and that they look human and pass for human to a casual observer at least at a distance. They must be able to walk, talk, run, dance, do sports, do chores, manufacture products, and make more robots just like themselves if not even better. My aim is to build a single robot arm and head and then add sufficiently advanced AI to that arm and head to enable it to build the rest of its own body for me. This way I am delegating the work of building the majority of my first humanoid robot to that robot rather than doing that work myself - and this is to save me time. In a like manner, my goal with the AI is to code just enough AI that the AI can begin coding itself and this way I don't have to code most of the AI myself because it will self create itself. I liken this to building a seed and that seed growing into a tree because for me to code that tree would take too long for me and just creating the seed would then save me time.

So I realized embedded development is a whole field in itself. I had been listening to the embedded podcast for years and didn't realize until deep into my embedded programming project that I was entering that whole field unknowingly. They speak of oscilloscopes, debuggers, and all kinds of stuff. I don't have any of that. My goal is to simply code the software for my electronic speed controller microcontroller unit in Dev C++ and have it say things like ----- cout << "hello world"; ---- as test code to ensure all logic flows well, running it on my windows desktop. Then once it is all finished and perfect I can attempt to run it on the microcontroller by first commenting out all windows specific code and uncommenting out all microcontroller specific code. To do this mass commenting and uncommenting, I realized I could use the "find and replace" command. So for all windows code I use: /*-*/cout << "initializing microcontroller of ESC now\n"; /*-*/system("Pause"); and this acts as a non functioning comment since it only comments out the hyphen but can later be replaced via find and replace command with //-/ instead which will make it act as a actual commented out line. Then for all microcontroller specific code, it is actually commented out but does so like this: // Set P1.0/HIN1 latch LOW //-/P1 &= 0xFE; note that // Set P1.0/HIN1 latch LOW is a normal comment that will go unchanged between versions but ----- //-/P1 &= 0xFE; ---- is a actual comment that is distinct from a normal comment since it has -/ after the normal // which means that I can find and replace it with /*-*/ for the microcontroller specific build of the code. So with just two find and replace commands we can hot swap the whole codebase from microsoft windows runnable version to MCU runnable version. And we can jump back and forth whenever to fix things, test things, run tests on windows and on MCU whenever we want.

⧖expiring0/1 kept4d ago

𓀐 @rx7UsjXk

⏱ 1w 👍 0

⬆ upvote 0