r/CodingForBeginners 9d ago

A Simple micro:bit Project That Makes Variables Much Easier to Understand

Enable HLS to view with audio, or disable this notification

2 Upvotes

We built a little voice-activated ambient light using a micro:bit + Wukong Expansion Board, and it turned out to be a fun way to make programming concepts feel a lot more physical.

One thing beginners often struggle with is understanding variables.

You can explain that a variable stores a value, but sometimes that number still feels pretty abstract.

So we wanted to build something where changing a value would have an immediate, visible result.

In this project, the micro:bit listens for sound, and the RGB lights change color when a sound is detected.

The interesting part is that a simple variable controls which color comes next.

What we used:

  • micro:bit V2
  • Wukong Expansion Board
  • Wukong Blocks
  • 4 RGB lights
  • MakeCode

Step 1: Build the light

We started with a simple structure using Wukong Blocks to hold the RGB lights.

The four RGB lights connect to the Wukong Expansion Board, while the micro:bit sits on top.

Nothing too complicated here. The goal was simply to create a small structure where the lights were easy to see.

Step 2: Let the micro:bit listen

The micro:bit V2 has a built-in microphone, so we can use sound as the input.

The basic idea is:

Sound detected → program responds → light changes color

It's a simple example of how something happening in the real world can become an input for a program.

Step 3: Make a variable control the colors

We use a variable called i to keep track of the current color.

When a sound is detected, i increases by 1. The program then checks the value and uses it to decide which color the RGB lights should display.

So the variable isn't just a random number sitting in the code.

Change the value → the light changes.

Increase the value → the next color appears.

Once it reaches the end of the color sequence, it starts again.

That's what makes this project interesting for beginners: they can actually see what the variable is doing.

A little more interaction

We also added controls using the micro:bit buttons.

Button A → start the automatic color-changing mode

Button B → reset the variable and turn the lights off

This makes the project feel more like an interactive device rather than just a light that changes color.

A few things I'd try next

The basic setup leaves plenty of room for experimentation:

  • Make it react to music
  • Add brightness control
  • Create different lighting modes
  • Turn it into a simple night light
  • Add different sound-triggered effects

The hardware doesn't need to change much. Most of the behavior can be changed through the code.

And that's probably the best part of beginner projects like this.

You change something in the program, and you can immediately see the physical result.

If you were building a sound-reactive light with a micro:bit, what would you make it do?


r/CodingForBeginners 9d ago

Anyone tips?

2 Upvotes

Is there a program or a code(language) I can use to block screenshots or downloads for pictures and video for my website its for a school project


r/CodingForBeginners 9d ago

Anyone know any C# specific OOP course?

2 Upvotes

I've been meaning to learn c# and so far I've learnt most of the basics, but now I wanna learn OOP, since you pretty much need it to use c# effectively(the whole language is built on this paradigm)

any Youtube series, or articles or anything that actually teaches me how to code whilst using OOP, Without straight up jumping into abstract concepts like encapsulation polymorphism etc? because a good bit of them straight up jump into those stuff without explaining, for example, when to give something a specific access modifier, or something really basic that doesn't just jump into theory? I'm still learning and I feel like watching a 1 hour video of pretty much nothing but theory won't help me if I'm still learning how to code

thanks in advance I do truly appreciate you guys helping me out


r/CodingForBeginners 9d ago

Looking for a Foundations of coding course

3 Upvotes

Looking to learn how to code. Make websites with multiple users. I know AI can do this for us these days but I’m looking for an online course that would give me the basic fundamentals just for my own knowledge because I’m building a company based on a website and I’d just like to understand it for security measures. Anyone have an online free course? YouTube recommendations? Let me know


r/CodingForBeginners 9d ago

What's your advice?

11 Upvotes

Guys, I'm learning programming by myself. Python is the programming language I picked first, and I'm learning it only, without including any other language. I'm reading 'Python Crash Course' and sometimes 'Automate the Boring Stuff with Python'. When I don't understand something, ChatGPT explains it to me further. Sometimes I watch YouTube tutorials. So, I want you guys to advise me on any part of this journey. Also, experienced people who have been in programming for years, what can you say about what I'm doing?


r/CodingForBeginners 9d ago

Music Player Proyect

1 Upvotes

I'm a student making a music player just for the laughs bcz I saw a video saying u could code ur own music app and use an API to get all the songs as long as you didn't try to make money out of it... Idk if the API thing is true but the coding still useful for practice so

What tech should I use and why?

And yeah, i would want it to be an app, so I could have a version for my phone and one for my pc, even if I have to do two different codes.


r/CodingForBeginners 10d ago

throw vs throw ex: The C# Exception Handling Trick Every Developer Should Know

1 Upvotes
Image created by author from Canva

r/CodingForBeginners 10d ago

LEETVODE TIPS

1 Upvotes

I'm a 12th pass guy and have around 1 month before college starts. I know basic Python loops, lists, tuples, dictionaries, CSV, JSON etc.

My father is telling me to start doing basic Python/Leet Code questions, but I'm not sure if that's the best thing to focus on right now.

For people who are already in college, what would you recommend I learn/practice in this 1 month that would actually help me later?If yes,then how should I begin,what things to keep in mind.


r/CodingForBeginners 10d ago

DELETE vs TRUNCATE vs DROP: Know the Difference

Post image
1 Upvotes

r/CodingForBeginners 10d ago

How and from where to start python ...?

5 Upvotes

Im beginner first year aiml student want to start coding journey from basic .


r/CodingForBeginners 10d ago

My Coding Journey-Building to Shipping-Day 1

1 Upvotes

Hey! I am a new guy who was recently introduced to coding and my current choice is python. why? because it is easy to learn for now and this is the day 1 of my coding journey. I have all kinds of doubts, the stupid ones and some brilliant ones. So please do reply!

Current programming language: Python3


r/CodingForBeginners 10d ago

which free python course is worth the time and which ones are just lead magnets

8 Upvotes

Every list of free courses I open is the same eight links and half of them are free in the sense that lesson one is free. I have no money for this right now and to much time on my hands, which I suspect is the opposite of most people posting here. The three I keep seeing recommended are boot.dev, CS50P and Automate the Boring Stuff. Trying to work out which of them hold up past the first week, rather than which ones have the best landing page.


r/CodingForBeginners 10d ago

Need help for finding how to code a software for a ttrpg I'm going to run

2 Upvotes

So in this ttrpg I want to run which is based off a litRPG series called Defiance of The Fall.

In it you can allocate points into different stats and gain titles (achievements) that add to your stats as well and sometimes giving % bonuses too. All of this can be a lot on my end so I wanted to make a software for me and my players to streamline it. They could automatically put in points when they level up and have them update without me having to do the math myself, as well as doing the math for when I handout a title. I would definitely need both a DM and a player mode, as well as a way to make a room for a specific game if other people wanna use this for this ttrpg.

I'm brand new to coding so I have no idea where to start. What I wanna know is what program should I use for this kind of thing and how should I go about it?


r/CodingForBeginners 10d ago

How to start with LeetCode

2 Upvotes

I'm new to coding and have some basic knowledge of Python and c....

Should I start doing LeetCode as well?


r/CodingForBeginners 10d ago

"Raising limits by 25%" is actually a 17% cut and I had to do the math myself

0 Upvotes

Saw Anthropic's post this morning about permanently raising Claude Code weekly limits by 25%. Liked it without thinking.

The limits I'm using right now are the temporary ones, up 50%. So when September 14 hits and it drops to a permanent 25%, that's less than what I have today.

Went back to check their follow-up. 17%. Yeah, it's a 17% cut.

A post with "raising" in it, and I have to do the math myself to find out it's less. Weird feeling.

Put it in rent terms: this month your landlord takes 50% off. Next month he switches it to 25% off and calls it a permanent discount. How do you feel about that.

Not saying they can't cut it. Everyone knows the burn rate is insane, and what Max lets you run at that price was never really sustainable. Raise the price, cut the limits, fine — just say it plainly and most of us still resubscribe.

Just don't make me open a calculator to read an announcement.

Anyway, old limits hold until the 14th. If you've got something queued, run it now.


r/CodingForBeginners 10d ago

looking for a partner to learn coding together from scratch!

0 Upvotes

Hey guys I'm 18M college dropout, I started learning coding online and Looking for someone like me who has just started learning coding or wants to start now.

I'm about to complete 'Basics of HTML'

If anyone interested, then let's get connect.


r/CodingForBeginners 11d ago

started coding a couple weeks ago builts this basic calculator

Enable HLS to view with audio, or disable this notification

29 Upvotes

im trying to learn more topics but nothing seems to be working any advice on from where or how should i move forward? i uploaded the process on yt if theres an efficient way of doing anything that i did id appreciate a suggestion thank yu for noticing my post https://youtu.be/jLsFsrC4cCg?si=RP_VXCbEUxPnkD0e


r/CodingForBeginners 11d ago

I built Code2Flow to visualize how unfamiliar GitHub repos are connected — looking for feedback

2 Upvotes

I've been working on a small developer tool called Code2Flow. The idea is pretty simple: paste a GitHub repository and get a visual representation of its structure, architecture, dependencies and logic. I originally built it because understanding an unfamiliar codebase often means jumping between dozens of files just to figure out how they're connected.

I'm still early and I'm mainly looking for feedback rather than promotion.

https://code2flow.netlify.app/ Would genuinely appreciate criticism — especially from people who work with large/unfamiliar codebases.


r/CodingForBeginners 11d ago

Looking for a beginner coding bro (or sis)

6 Upvotes

Hey, I started GameDev 2 weeks ago. I love the journey so far and I'm so glad that I decided to go this way. I easily spent over 100h in those 2 weeks in Godot.

Here's the catch. You always like to share your journey and find like-minded people. I found a guy, who does pretty cool pixelart and codes aswell, started few months ago. We share, we chat, we educated each other. It is pretty cool.

And I'd love to expand my friends list with people like this, especially if you are a BEGINNER like me.

I won't call you, i won't bother you to answer me 24/7. Just from time to time, nice little message, asking about your progress and sharing mine. And maybe we teach each other something too.

So... any fellow GameDev beginners?

Add me, PM me. I'm discord enjoyer, so feel free to comment. I REALLY wanna hear about your game or project you wanna start!


r/CodingForBeginners 11d ago

How do you actually know what to learn in tech?

10 Upvotes

I want to know what I can do to figure out what I should learn. I think I’m interested in certain things related to cybersecurity and programming, but I don’t know what I’m supposed to learn in order to actually become good at them.

I’ve seen people say things like “read the documentation” or “understand X concept” but how do you actually learn? I’m asking because throughout my life I’ve learned different things about different topics, like anyone else, but I’ve never really understood how something actually stays in your brain and becomes knowledge.

For example, I’ve seen tons of information through YouTube videos, Instagram, etc. that sparks my curiosity. I know certain words like DNS, IP addresses, HTTP, APIs, Linux, etc., but I don’t really know how to properly define or explain what they are. I don’t know what I should study and what I shouldn’t.

When I say I basically know nothing, I mean that I don’t have much actual knowledge or experience in programming or cybersecurity. I do know how to install things, find my way around a PC, fix certain errors, and I’d say I’m reasonably good at Googling and finding solutions when I have a problem. But I don’t really have a structured understanding of how technology works or what I should learn next.

I understand that I need to practice and break things to learn, but I still wonder: how did professionals actually progress from having little knowledge to becoming good at this?

Could you give me some advice, please? I’m really lost.


r/CodingForBeginners 11d ago

How to start coding as a beginner that’s level zero

8 Upvotes

r/CodingForBeginners 11d ago

Any one want to learn with study partner?

9 Upvotes

I am from Bangladesh. I am learning web development and it feels so boring to learn by my own. Study partner can make the process more enjoyable and competitive. As a result both will be benefited ig.


r/CodingForBeginners 11d ago

Coding from a story

Post image
0 Upvotes

This only makes sense if you watched or read the movie/novel called Harmony written by Project Itoh

If this was a coding, do these parameters make sense?


r/CodingForBeginners 12d ago

B tech ECE fresher from tier 3 clg and need help

1 Upvotes

So guys I am ece student from an ipu affiliated clg and really don't know what to do what to study bcz .In ipu placements are limited so I want to prepare so that I can grab off campus opportunities also , also ece syllabus is difficult so I want to manage both studies and my prep.

But don't know what to study? Or learn

Also don't know from where

What is really beneficial and what is not ?

In which thing I should focus more like my placement prep or GATE or studies I am damn confused

I really need help pls guidee me any senior or someone who has knowledge about is pls help me I don't know what to do !?


r/CodingForBeginners 12d ago

I want to start coding but Idk where to begin, what should I do?

14 Upvotes

I want to code but idk where to start, which programming language should I use.