KonstantinosFragkoulis

KonstantinosFragkoulis

6-day streak
Today I made quite some progress in DroneCtrl (and DroneSim). I improved blackbox logging, making sure that only necessary info is logged and creating each time different log files. Also, I added the --virt flag to DroneCtrl that makes it get the image from the camera in DroneSim (in Unity). This way I can fully test DroneCtrl within DroneSim. Tomorrow I will be testing and fixing stabilized hover - hopefully finishing it entirely. Here is are the github repos: github.com/konstantinosfragkoulis/DroneCtrl, github.com/konstantinosfragkoulis/DroneSim
https://scrapbook-into-the-redwoods.s3.amazonaws.com/d2058ad6-bf14-4f8f-a458-10d95219ab2c-2024-07-02-004005_1920x1080_scrot.pnghttps://imgutil.s3.us-east-2.amazonaws.com/2f10a6706b4a436ec4f56b52468c9b82334b4ff6a6c7c0267b6add5e665838b1/e0c5d141-5205-494b-a763-5e8ff0010b59.png
summer-of-making emoji
github emoji
Today I made quite some progress in DroneCtrl. After taking a break for a week or two, I'm back at it! First, I split the code into many files. Having just one file with 1200+ lines of code was not manageable. Secondly, I improved the way debug info is printed. The information is structured in a table and the terminal doesn't get cluttered as when the table is updated, the previous one is erased. Also, the program logs debug info to csv file (in addition to the terminal) which can be plotted using the new blackbox.py program (included in DroneCtrl). Finally, I updated the README.md of the github repo to reflect the changes that I made today. Here is the github repo: github.com/konstantinosfragkoulis/DroneCtrl
https://scrapbook-into-the-redwoods.s3.amazonaws.com/84122cf4-5b84-43bf-80ac-b7842752abab-2024-06-30-235944_1920x1080_scrot.pnghttps://imgutil.s3.us-east-2.amazonaws.com/ff1bdb2215526868863e5c6be58ca39f5ee87ec1022bae56d011ce9ee3ff0311/ea5a6827-6c14-40a5-a8a7-7a5446110b74.png
github emoji
summer-of-making emoji
goose-honk-technologist emoji
dino-debugging emoji
I could definitely say that my 3d function plotter is ready to ship. After polishing and a bit of testing it works quite well. The only issue is performance - that's why I don't post on #ship (Also it doesn't work on mobile. Technically it works but you cant move around and the performance is even worse). I will continue to work on it and hopefully I can fix that issue. For now, you can plot you own equations at plotter.konstantinos.me The source code is available at github: github.com/konstantinosfragkoulis/FunctionPlotter
https://scrapbook-into-the-redwoods.s3.amazonaws.com/f1ffda5c-1f04-42b1-89fb-f7657deb0502-2024-06-29-230423_1920x1080_scrot.pnghttps://imgutil.s3.us-east-2.amazonaws.com/d73a4e57d8fda2a944b29b424d12c02ffdf8b77f589ec99b4fdb4465c1633289/8a5adfb8-c8d9-443c-a792-26b1c24d6b51.png
Today I can finally say that my function plotter is done (almost). I added support for all 3 and 2 variable equations! Still the performance is really bad and there are some small known bugs. I will continue working on them, but I'm not sure if I will be able to fix the performance issues... Also, I need to fix the way that you move around, as being level with the xz plane makes almost impossible seeing the plots of functions that lie on that plane. Anyway, here is the live website: plotter.konstantinos.me And here is the source code: github.com/konstantinosfragkoulis/FunctionPlotter P.S. I also added my plotter on my portfolio. (konstantinos.me)
https://imgutil.s3.us-east-2.amazonaws.com/95add4ee65fc60bf27c60012e86e2cb26a7ad40e3002728c0dac7f42af2247af/6d309cb2-cb34-4ecb-8a4f-45999ba78de6.png
https://imgutil.s3.us-east-2.amazonaws.com/ab140e2dd425b02b5c7de5424192c9521a69caa4496b2b3008c54e98668d6a20/aa34e07c-4b05-4271-8848-0c55ecc26fb8.png
summer-of-making emoji
github emoji
Yesterday, after finding a new math library that could parse all 2-variable equations I used it in my website despite it's extremely slow performance. Today I drastically improved it, though! No, I did not use a faster math library - nor did I write my own. I decided that the best solution was not addressing the root cause, but just throwing more cpu cores at the problem. By creating as many web workers as there are cpu threads, I have reduced the time to plot an equation by up to 85%! This is not as impressive considering that now instead of waiting for 30 seconds, you will have to wait for 5. Also, for simpler equations like y=x which were already plotted quite fast, there is no noticeable speed increase. In fact, the speed might have decreased slightly because due the overhead of using 24 web workers. Anyway, you can visit the website at plotter.konstantinos.me And find the code at github: github.com/konstantinosfragkoulis/FunctionPlotter
https://imgutil.s3.us-east-2.amazonaws.com/2e220d7fcf2cbae19466323cac7f5813ee929475719a1584eb8ad60f4e788a84/a1611ea4-6bd4-432b-9090-8b7a2c7b877b.png
summer-of-making emoji
github emoji
goose-honk-technologist emoji
Today I made a lot of progress in my equation plotter. Using a different math library the website can now plot all 2-variable equations. However, there is a major issue with the new library - it's very slow. (up to 40+ seconds for a complex equation). I'm still working on fixing the performance. I would also like to be able to plot 3-variable functions but given the already terrible performance that's not feasible at the moment. You can visit the website and plot any equation you like at plotter.konstantinos.me You can find the source code at github.com/konstantinosfragkoulis/FunctionPlotter (If you visit the website and it says that it is unresponsive, click wait. After some time the equation should be plotted)
https://scrapbook-into-the-redwoods.s3.amazonaws.com/f7d38f5e-63ed-440c-b543-a5d83ccdff1f-2024-06-28-003418_1920x1080_scrot.pnghttps://scrapbook-into-the-redwoods.s3.amazonaws.com/31cfac22-68f3-4a3c-8263-db19ebd94af1-2024-06-28-003807_1920x1080_scrot.pnghttps://scrapbook-into-the-redwoods.s3.amazonaws.com/732b029e-45c1-428f-a39b-cdeca3e5b0db-2024-06-28-003757_1920x1080_scrot.pnghttps://imgutil.s3.us-east-2.amazonaws.com/2e220d7fcf2cbae19466323cac7f5813ee929475719a1584eb8ad60f4e788a84/a474af7e-2a09-4a01-ae1c-10f361c3fd4a.png
github emoji
summer-of-making emoji
goose-honk-technologist emoji
Today, I didn't make much progress. Aside from the small amount of time that I spent, I couldn't find a good enough math parser for javascript. I found mXparser which was originally for java but has also been ported to typescript. I tried to use it but there were some persistent issues which I didn't manage to solve. So, I will try again tomorrow to see if I can integrate it into my 3d website to plot 3-variable equations. For now, you can visit the website and plot only functions: plotter.konstantinos.me And see the source code at github github.com/konstantinosfragkoulis/FunctionPlotter
https://imgutil.s3.us-east-2.amazonaws.com/d73a4e57d8fda2a944b29b424d12c02ffdf8b77f589ec99b4fdb4465c1633289/3ba90810-e685-4b1d-8c7d-13a6717aed35.png
summer-of-making emoji
js emoji
github emoji
typescript emoji
goose-honk-technologist emoji
java_duke emoji
Today I started creating a 3d website using A-Frame! I had the idea to create a function plotter. Using mathjs I could relatively easily plot 2d functions of x. Currently I'm trying to expand the functionality to support 3-variable functions and other equations like y^2 +5x = 0 which are not currently supported. You can visit the website at plotter.konstantinos.me And you can find the source code at github: github.com/konstantinosfragkoulis/FunctionPlotter
https://scrapbook-into-the-redwoods.s3.amazonaws.com/d896c3ca-963d-471c-8a86-75ff686f73d8-2024-06-26-001938_1920x1080_scrot.pnghttps://imgutil.s3.us-east-2.amazonaws.com/1df9c22e00d8d67dff6e50c7bcadd5299e7fc4010fb30aed7027ff42858e582f/d9565f35-06df-4b17-80a0-73b173c9f87a.png
summer-of-making emoji
goose-honk-technologist emoji
github emoji
Today I didn't do much - just some very small changes to my personal website. You can visit it at konstantinos.me
https://scrapbook-into-the-redwoods.s3.amazonaws.com/eed26af4-7591-4da9-a2a0-d3fac44d71fd-2024-06-24-001054_1920x1080_scrot.pnghttps://imgutil.s3.us-east-2.amazonaws.com/8b63857e817eaf02abb940406e5c2969a1a00fad56151cedd542931ba1ae3104/9fa46db3-538a-4c99-b874-93e80f2bc5b9.png
summer-of-making emoji
https://scrapbook-into-the-redwoods.s3.amazonaws.com/0ace2d26-5b2a-44e2-88ab-31dbee70684d-2024-06-24-001054_1920x1080_scrot.png
summer-of-making emoji
github emoji
goose-honk-technologist emoji
Today I improved quite a bit my personal website. I fixed various bugs, improved the design and added new features. Also, I designed a favicon and improved the mobile version. Still there are many known issues... and I'm having doubts about the design. I'm thinking of keeping this website as a fun concept and creating a more conventional website. Or that could be just for mobile... but then again it's not right for the mobile website to be a totally different thing from the desktop one. Anyway, here is the website: konstantinos.me And here is the repo: github.com/konstantinosfragkoulis/portfolio
https://scrapbook-into-the-redwoods.s3.amazonaws.com/79db6870-7b6c-476f-8e4c-ad879c6326da-2024-06-22-222425_1920x1080_scrot.png
thinking emoji
github emoji
summer-of-making emoji
Today, I made great progress on creating my personal website. I fixed a lot of bugs and small issues, and I improved the functionality and design. There's still a lot of work required, though. Here is the live website: konstantinos.me And the github repo: github.com/konstantinosfragkoulis/portfolio
https://scrapbook-into-the-redwoods.s3.amazonaws.com/490e3815-6e51-4e75-8a50-5276609aa562-2024-06-22-000038_1920x1080_scrot.png
summer-of-making emoji
github emoji
Today I made great progress on creating my personal website with React. I improved the design (a lot) and added some content. Still there is much more work to do. There are some minor bugs, the mobile version of the site is still a mystery, and I haven't actually spent the time to add all the content that the website should have. Well... that's something that my future self will do - not a problem that I have to deal with now. Here is the github repo: github.com/konstantinosfragkoulis/portfolio And here is the live website: konstantinos.me
https://imgutil.s3.us-east-2.amazonaws.com/d835993c1f4e7a1cc2302445e887b2a08ccb0fb22a1c61cc9df7929296fd84dd/a3afd616-8eee-496b-b5a8-9be79f045039.png
github emoji
spring-of-making emoji
react emoji
Today I worked a bit on my personal website. It is not live yet as there is a lot more development needed. I am designing it to mimic macOS, with each "app" on the dock being a different page of the website. When clicking on an "app" a window - which behaves like any other window in macOS - opens which displays all the info. Here is the github repo: github.com/konstantinosfragkoulis/portfolio
https://imgutil.s3.us-east-2.amazonaws.com/8f0573e6e5e627534b177fedffc245913eba86983a2d1dabca9dcf60d82d4d26/3788a435-4c04-47ac-8430-982af37122ac.png
github emoji
spring-of-making emoji
Today I made significant progress. I adjusted the way that the drone is controlled to allow rolling for sideways movement. Using this, I implemented stabilized hover - that is the drone will use a marker placed somewhere on the room as a reference point and stay fixed in place (roughly). I cannot guarantee that it works - I haven't tested it with the actual drone as I had some problems with the vtx - however the simulator results don't look very promising. Anyway, most likely it's an issue with the simulator. I will resolve the problem with the vtx tomorrow and I will post a clip of stabilized hover - if it works. DroneCtrl: github.com/konstantinosfragkoulis/DroneCtrl
https://imgutil.s3.us-east-2.amazonaws.com/ff1bdb2215526868863e5c6be58ca39f5ee87ec1022bae56d011ce9ee3ff0311/3bccc099-4596-4415-ad0b-2d33d7f91194.png
github emoji
spring-of-making emoji
Today, I made the drone hover relatively well. The accelerometer is not calibrated perfectly - that's why the drone is drifting a bit - but otherwise, it works! Here are two clips, one with the drone just hovering, and the other with the drone moving forward while remaining at the same height. DroneCtrl: github.com/konstantinosfragkoulis/DroneCtrl
https://imgutil.s3.us-east-2.amazonaws.com/d73a4e57d8fda2a944b29b424d12c02ffdf8b77f589ec99b4fdb4465c1633289/8ce502d3-be61-464a-b73c-bd555e3b7641.png
github emoji
spring-of-making emoji
Today I did a bit of testing and concluded that the scratched propellers have caused the big reduction in thrust, although the visible damage is very minor. Until new ones arrive I will have to continue using them, so some adjustments in DroneCtrl are needed. DroneCtrl: github.com/konstantinosfragkoulis/DroneCtrl
https://imgutil.s3.us-east-2.amazonaws.com/ff1bdb2215526868863e5c6be58ca39f5ee87ec1022bae56d011ce9ee3ff0311/d3c19900-d3df-4a13-8ca9-25abfd7e1352.png
spring-of-making emoji
github emoji
Today I still did not manage to implement object tracking. However, I fixed some bugs both in DroneCtrl and in DroneSim, and did some more testing with the actual drone (I'm happy to report that there have been no new crashes!). Tomorrow I will look into object tracking as well as investigating whether there is an error in the logic that calculates throttle based on acceleration or just the scratched propellers produce less thrust at the same RPM. DroneCtrl: github.com/konstantinosfragkoulis/DroneCtrl DroneSim: github.com/konstantinosfragkoulis/DroneSim Here's the screenshot of DroneSim that I didn't post yesterday. It's not the best, but it is certainly better than the default skybox.
https://scrapbook-into-the-redwoods.s3.amazonaws.com/e0bedd51-7ec2-4430-af01-4457d5d6cfdc-2024-06-15-232330_1920x1080_scrot.pnghttps://imgutil.s3.us-east-2.amazonaws.com/ff1bdb2215526868863e5c6be58ca39f5ee87ec1022bae56d011ce9ee3ff0311/3cb84128-ea1e-45f6-9f80-f6a6bdc89c16.png
spring-of-making emoji
github emoji
https://imgutil.s3.us-east-2.amazonaws.com/ff1bdb2215526868863e5c6be58ca39f5ee87ec1022bae56d011ce9ee3ff0311/572e4e65-ab66-47f7-b007-1192111f6096.png
github emoji
spring-of-making emoji
Today I made some progress with DroneSim. While I didn't improve the functionality, I used some assets from the Unity Asset Store to make a somewhat good looking environment. Also, I fixed a small bug in DroneCtrl - now the throttle is set to zero when launching the program (before it was low enough for the drone not to take off, but the motors were spinning quite fast). DroneCtrl: github.com/konstantinosfragkoulis/DroneCtrl DroneSim: github.com/konstantinosfragkoulis/DroneSim (Unfortunately I can't send a video of the simulator right now... I will send it a bit later)
https://imgutil.s3.us-east-2.amazonaws.com/2ed2adb7ab7167e42b5611b9e202fbdee4e3dc87d04c6d30f3020876a17ed2cd/05677878-6717-485e-aef7-67267fa9c81c.png
Today was a great day! The issues that occurred yesterday gave me one more reason to create a simulator for my drone, and so I did. While it still needs some polish, the basic functionality of the simulator is done. This means that I don't need the actual drone to test DroneCtrl. In turn, because of the ability to run as many tests as I want, I was able to fix multiple major bugs. (Now that I am writing this, I realize how dumb I was - I should have created the simulator before even starting to create DroneCtrl.) Anyway, I fixed bugs, corrected documentation, completed the transition to a new way of controlling the drone, created the simulator (which as far as I know works), and also got my nest account approved! Website coming soon™. DroneCtrl: github.com/konstantinosfragkoulis/DroneCtrl DroneSim: github.com/konstantinosfragkoulis/DroneSim Website: konstantinos.me P.S. I know the simulator looks terrible - I was focused on getting it to work. Tomorrow it will look good as well, possibly with different sceneries to change around.
https://scrapbook-into-the-redwoods.s3.amazonaws.com/d269b480-39c2-40e9-a125-749a92b7b25f-2024-06-12-221408_1920x1080_scrot.pnghttps://imgutil.s3.us-east-2.amazonaws.com/ff1bdb2215526868863e5c6be58ca39f5ee87ec1022bae56d011ce9ee3ff0311/09f68b43-4adf-4526-a2a1-2d873c6a9be3.png
github emoji
spring-of-making emoji
Today not everything went according to plan... There was a major bug with led to the drone not landing, but rather continuing to climb. Thankfully, the drone was not damaged (only the propellers were scratched, and the casing of the camera a bit). So today I fixed this bug, and also I made sure it won't happen again by catching all exceptions when calling functions and immediately disarming the drone if there is one. It's a bit late for me now so I will not continue the testing. More crashing tomorrow! Here is the github repo where you can find all the code: github.com/konstantinosfragkoulis/DroneCtrl P.S. I also fixed another bug which didn't allow the drone to land after taking off for a second time without quitting the program.
https://scrapbook-into-the-redwoods.s3.amazonaws.com/693476c1-d80b-4313-8d8e-022571969b1f-img_20240611_223825_989__1_.jpghttps://imgutil.s3.us-east-2.amazonaws.com/7cadf40cda42933d5a9495b5b723ccbe417c222eda4b87703309c226482807aa/8ab5b732-d565-45b0-a487-22b89d0825f9.png
Well, the drone now should be able to follow the biggest object that it sees with a specific color. I haven't tested it yet though 😞 (I'm too scared to crash it). Here is a clip from earlier today, my genuine reaction to the first takeoff ever (got a bit scared at the end) 👍 Just to be clear, I stopped the drone mid air, I don't know what I was expecting other than it falling straight down... Once again, here is the repo where you can find all the work that I have done: github.com/konstantinosfragkoulis/DroneCtrl
https://imgutil.s3.us-east-2.amazonaws.com/7cadf40cda42933d5a9495b5b723ccbe417c222eda4b87703309c226482807aa/558fb32d-f17b-4663-ba3e-754fb81d2c1e.png
spring-of-making emoji
github emoji
neocat_googly_shocked emoji
Today I did the first test flight for my autonomous drone. As of now, I have implemented autonomous takeoff, landing and I am making progress towards full autonomous flying. However, I didn't fully test autonomous takeoff as I didn't really want to find out that it doesn't work when my drone is heading towards the ceiling at 5m/s 🙂 I will post again when I make some more progress. Once again, here is the github repo: github.com/konstantinosfragkoulis/DroneCtrl
https://imgutil.s3.us-east-2.amazonaws.com/7cadf40cda42933d5a9495b5b723ccbe417c222eda4b87703309c226482807aa/39945943-e66f-41c4-b688-976e1a7f5c0f.png
spring-of-making emoji
github emoji
https://imgutil.s3.us-east-2.amazonaws.com/7cadf40cda42933d5a9495b5b723ccbe417c222eda4b87703309c226482807aa/83b3868d-7b8b-41b3-b03d-e53589a0b5bd.png
github emoji
spring-of-making emoji
Today, not much progress was made. Still, however, I improved DroneCtrl, mainly adding some helper functions that will make my life easier when implementing autonomous flight. You can see the progress at the github repo: github.com/konstantinosfragkoulis/DroneCtrl
https://imgutil.s3.us-east-2.amazonaws.com/298b82b5c3025650fc40b407040997f818ac2d093801e945c72c3f8a52f1023e/ff04ff44-d2ef-45cd-bffe-c9cc795b5cb1.png
spring-of-making emoji
github emoji
Today I finished the design of my autonomous drone. The drone was able to fly before, but now the battery is properly attached with a redesigned battery holder and not just left hanging. I also made some very significant improvements to the program that controls the drone. While not enabling any new functionality yet, I fixed some very important bugs which already created minor issues with takeoff and landing (the only features implemented as of today). Besides of that, I also ordered my NFC-enabled PCB business cards (#electronics - OnBoard), and added my game for Sprig to the library (sprig.hackclub.com/gallery/BlockPuzzle)! In the next couple of days I expect great progress towards creating a fully autonomous drone - the hardware is done, no more excuses.
https://scrapbook-into-the-redwoods.s3.amazonaws.com/174c4b7b-3014-4a13-9b91-e06a004329f5-img_20240607_215219_269.jpghttps://imgutil.s3.us-east-2.amazonaws.com/e05c48f1970288c4d4291e878cb3f688814742a78d194a8c78c56075b82be43e/a3c61986-ed80-43b5-90d8-881751438fd9.png
For #hack-hour and for #electronics I just created my first PCB business card following the tutorial by Maggie Liu. I will be submitting a pr and hopefully, I will get my cards soon!
https://scrapbook-into-the-redwoods.s3.amazonaws.com/9ed981ec-c394-4336-824f-48227129a28d-2024-06-06-192917_1920x1080_scrot.pnghttps://scrapbook-into-the-redwoods.s3.amazonaws.com/01c3738d-c144-4172-88d7-c669cc5215bf-2024-06-06-192913_1920x1080_scrot.png
goose-honk-technologist emoji
pcb emoji
pr emoji
spring-of-making emoji
For #hack-hour and for #sprig Just finished my simple puzzle game. You can play it here: sprig.hackclub.com/share/QOYYdHaf3QzXlWLRm2YI. You must reach the end without running out of moves and without letting the enemy catch up to you.
https://scrapbook-into-the-redwoods.s3.amazonaws.com/33809f27-8de4-462b-9e02-db8e5c75bbf3-2024-06-06-111237_1920x1080_scrot.pnghttps://imgutil.s3.us-east-2.amazonaws.com/e05c48f1970288c4d4291e878cb3f688814742a78d194a8c78c56075b82be43e/240db3e1-d2ae-4d9c-b443-e9e505d33484.png
https://scrapbook-into-the-redwoods.s3.amazonaws.com/1353cee7-2f25-43db-84ad-edd75414a724-2024-06-05-234738_1920x1080_scrot.pnghttps://imgutil.s3.us-east-2.amazonaws.com/e05c48f1970288c4d4291e878cb3f688814742a78d194a8c78c56075b82be43e/a2f7846b-0645-4dd0-b321-c5c7930fcce9.png
For #hack-hour Today I completed my first goal! My autonomous drone is now able to takeoff and land autonomously. While it can't do much yet, work has been put into making the implementation of other autonomous actions relatively simple. Here is the github repo where you can see what I have done: github.com/konfrag4/DroneCtrl/tree/main. I will update when new features are done.
https://imgutil.s3.us-east-2.amazonaws.com/18e132c330f18f0b994a2950899387f8657c17585bc6e951fbdbd7087dfcfebc/e0104f0b-2c9f-4e85-aaa9-3b8f710b7d54.png
spring-of-making emoji
goose-honk-technologist emoji
github emoji
For #hack-hour Yesterday was day 1 of creating an autonomous drone. I almost finished automatic takeoff and landing. Later today I will be working on fixing some minor issues and will continue with autonomous flight. Here is the github repo: github.com/konfrag4/DroneCtrl It doesn't look nice yet - I didn't have time, but will fix shortly
https://imgutil.s3.us-east-2.amazonaws.com/09976da47aefeb88ae3dfcbe4b095f76ad62870a584fe1b596c8e920f3c38b0c/4e9c5def-3915-4e60-90cd-e667ddb11420.png