I’ve fixed a huge bug I had where the machine would only work every other time (It was a soft limits problem). It’s a good thing I caught this since it was very random. If the user tried to write again, the plotter would like freak out and make this ugly noise and send a ton of errors. Turns out it was because it thought it was homed. Since the motors were still moving, it wouldn’t home, and it would think that it hit its soft limits. Besides fixing this bug, I also added the following:
This is my submission for outpost as well!
I spend quite a lot of time in my readme, so I would really appreciate it if ya’ll could give m some feedback or anything I could change. It’s my first time posting on my GitHub and using Git, so any advice is appreciated. Thanks!
(note: gif doesn’t appear to work but it is the same gif as in my GitHub)
While the base product is done, I have a ton of ideas to add. This project was originally built to allow my disabled niece to write. While it allows her to take physical notes, the need for a computer and an IDE like VScode takes away from the accessibility. Because of this, my main idea is to connect the plotter to a raspberry pi (or any sort of microcontroller) to allow the user to just click a button when wanting to use the machine. Not only would this make the process much easier to understand, but it would erase the huge cable mess I currently have when connecting my MacBook to the machine. I have much more stuff to add, so please let me know any ideas or feedback! This is my first time actually using code for something physical, so it was definitely a great learning experience. I hope I can take this project much, much further. (Much more photos + videos will be uploaded to the GitHub!!)
This Devlog is from a day ago, I just realized I never hit post 😭
I got my software to work! While it’s fairly simple, it can write basic phrases. I used python for my script, and I primarily used googles “speech recognition” library for the voice detection. Then, using the Hershey fonts library and a function, I was able to convert the string of text into g-code that would then be sent to the printer (This part took a while to figure out). Currently, since my plotter doesn’t have a z-axis, I figured that using the cursive font would work best since there is not much lifting in cursive. I also went to my local library to use their computers fusion software to designa pen holder (My Mac refuses to download fusion for some reason, it’s always unresponsive). I added the photos below (Since this was on a library computer the blocks screen recording, I’m not able to record my time with timelapse. The design took me around 2 hours though since I’m not the best with fusion 360) While it definitely could be improved, it works for now. Additionally, I made it so that the size of the letters vary on the amount of letters said. For example, if I say a long sentence that would normally extend past the paper, the code will scale this sentence down until it fits onto the paper. Now, the basics to my project are finally done! There’s still so much to improve upon, but the idea works. For now, I’d like to add:
Took me a while to figure out that I need to write the g-code in a separate area and that the software wouldn’t actually work as an IDE (Like I thought it did). After some annoying code, I got it to draw a heart! (ignore the blotching I left the sharpie uncapped and was moving the axis’s around) Also, since it doesn’t have a z-axis, it drags everywhere (hence the long line). Now I need to make a pen holder since my zip tie is (barely) holding it down.
Finally configured the laser printer I found on the side of the road. I’m guessing either the PCB or the motors are damaged since the machine basically has a mind of its own. Sometimes, the Y-axis controls need to be inverted, and other times, the x-axis controls need to be inverted. I think I found the sweet spot this time though. (Maybe this was on my part too since I barely know the $ commands)
My pen plotter can now:
I’m barely getting started with this too. Now, I need to send it some G-code and see how it writes. Also, I need to make a custom pen holder to mount the pencil/pen. Gonna have to use Thinkercad. Also gotta figure out how I’m gonna get it to translate words into G-code, but it’s 1 step at a time.
Spend an ungodly amount of time trying to put everything in a window. Genuinely wanted to give up, even Gemini couldn’t help me. Fixed all my code (it was very messy) and was finally able to get it all in the same box. made the clock and background move as you scroll. Moved the javascript over to a new file; made the window moveable and draggable (Clock doesn’t move). Added more bands + clickable links. Added a handle on top to move the window around.
I added a background, a clock, added fonts/changed colors, a box, made link that actually works, and I made background and clock move with you as you scroll. Most of the time spent I was just playing around with fonts and centering. Planning on adding more windows now, and if possible, music that plays every time you open a tab!
Working on my first OS! Also my first time ever using HTML. I was just messing around with the formatting; figuring out how to format photos, fonts, and tags; as well as inputting links. I plan to make this based off of my music taste! I’ve only started. (ran webpage locally)