r/ArduinoProjects • • 2d ago

Other After 3 months of hard work i have achieved blinking LED

Enable HLS to view with audio, or disable this notification

I have been hard at work these past 3 months, and today i have finally completed the milestone of a blinking LED!

I first wrote a small VM on the Arduino with C (for educational purposes and better control over Serial) that reads data sent over serial, and executes commands based off of that. It has a couple of instructions for setpin, readpin, delay etc...

Then i made my own programming language where i would eventually write my blinking LED in (that's the part that took me 2.5 months). It has error detection, loops, variables, and definitions, but no functions (yet).

And today i finally implemented the part to hook up the Arduino VM to my programming language's bytecode interpreter.

It is still pretty slow and not optimised yet, and there are a lot of bugs still (and i don't have functions yet), but the base is there!

I am also making a vscode extension to support my language :)

The goal of my language (Arduint (Arduino + Interpreter)) is to make programming Arduino as easy as possible without resorting to building with blocks (because let's be real, you're not a baby :)

Soon i might publish version 0.1 or something i think, if anyone's interested!

81 Upvotes

19 comments sorted by

7

u/stancr 1d ago

Wow, what degree are you pursuing?

4

u/LifeChoiceQuestion 1d ago

I want to get a civil engineer's degree in computer science (at VUB), but right now i'm still in my last year of secondary.

1

u/jader242 1d ago

Just curious, what’s a civil engineers degree in computer science? I live in the US, and here Civil Engineering and Computer Science are two very different fields

3

u/LifeChoiceQuestion 1d ago

I'm not sure how you'd call it in English, in dutch it's called "burgerlijk ingenieur computerwetenschappen" which literally means "civil engineer computersciences". It's a degree like a bachelor or a master, but then another step above that is a civil engineer's degree. Then you get the title of "burgerlijk ingenieur".

1

u/unknownz_123 16h ago edited 15h ago

That’s really interesting. In the US, the term “civil engineer” is a set type of engineer that does stuff with civil projects like designing government roads, bridges, dams, sewers, and ect. It’s how there are mechanical, electrical, and chemical engineers. What you call a “civil engineer” for us is a masters degree for an engineer or an engineer with a masters. The most likely equivalent would be us saying that you are getting a masters in computer science.

I think everyone is getting mixed up thinking that you are building like bridges and studying computer science code and circuits at the same time😆

1

u/LifeChoiceQuestion 13h ago

Thanks for the clarification 😅

2

u/jader242 1d ago

Oo interesting, from my quick research it seems like the equivalent to a masters. Thanks!

1

u/akshaykuppu 1d ago • Bravo

I think he's drunk

2

u/stancr 1d ago

I'm impressed. Make it happen!

11

u/ChirpyBlue 2d ago

Very impressive to write your own language, and I'm sure it's an incredible educational experience for yourself... but... damn dog you really like hard mode don't ya

3

u/LifeChoiceQuestion 2d ago

Yeah, it was for a school project so it's a win-win :)

1

u/rouggio 1d ago

I think you need a resistor on that led :p

1

u/LifeChoiceQuestion 1d ago

There is one, ~300ohms

1

u/corporacionRobot 1d ago

Felicidades sigue así

1

u/LifeChoiceQuestion 1d ago

Thanks! I will :)

2

u/davesaunders 1d ago

This reads like old school hacking days in the 70s. I respect the exploration and the pioneering.

0

u/miijjii 1d ago

Why are you reinventing the wheel?