avatar
HiBit
1165
244 50


Create Laravel 13 project from scratch

  • avatar
  • 265 Views
  • 7 mins read
Preview image

Laravel is a PHP framework built around the Model View Controller pattern, designed to make web development more organized and less repetitive. It has become one of the most widely used frameworks in the PHP ecosystem, and its yearly major releases keep bringing refinements to routing, database handling, testing, and application structure. Laravel 13 continues that pattern with a required PHP version bump, additional PHP attributes for controllers and queues, and a first party AI SDK, while leaving most day to day development patterns unchanged. Creating a new Laravel 13 project begins with installing PHP, Composer, and Laravel itself, followed by a short round of configuration that prepares the application for development.

Reading light levels with an LDR and Arduino

  • avatar
  • 461 Views
  • 12 mins read
Preview image

A light dependent resistor is a component that changes its electrical resistance according to how much light falls on it. Bright light makes it conduct easily, darkness makes it conduct poorly, and an Arduino can turn that difference into a number. It arrives in two forms. The raw component is a small disc with two legs, and it needs one extra resistor to work. The other form is a sensor module, a small board with the component already soldered on together with everything else the circuit needs, ready to connect to the Arduino with three or four jumper wires. Both versions do the same job and both show up in real projects. Automatic garden lights, night lights, display backlight dimming or simple daylight loggers all work on the same principle.

How to create a Composer package from scratch

Available to Premium members only
  • avatar
  • 555 Views
  • 1 Like
  • 16 mins read
Preview image

A helper class, a small client wrapper or a set of validation rules often starts in one project and ends up copied into the next one. From that point the copies drift apart, a bug fixed in one of them stays open in the rest, and there is no version number to refer to when something changes.

Turning that code into a Composer package removes the copies. The requirements are modest, since a package is a directory containing a valid composer.json file, a Git repository hosting it, and a listing on Packagist that tells Composer where to find it.

 Join Our Monthly Newsletter

Get the latest news and popular articles to your inbox every month

We never send SPAM nor unsolicited emails

Getting started with the HC-06 Bluetooth module

  • avatar
  • 621 Views
  • 19 mins read
Preview image

Adding wireless communication to an Arduino project usually starts with a Bluetooth serial module, and the HC-06 is one of the most common choices. It's cheap, widely available, and does one job well: it lets a phone or computer connect to your board and exchange data as if the two were joined by a cable. Four pins, one operating mode, and a small set of configuration commands is the whole picture. That simplicity comes with a real constraint though, and knowing it upfront saves time later, since the HC-06 only accepts incoming connections and can't reach out to another device on its own.

Image optimization for the web

Available to registered members only
  • avatar
  • 560 Views
  • 18 mins read
Preview image

Images are almost always the heaviest thing on a web page. A single hero photo can weigh more than all the HTML, CSS and JavaScript of a site put together, and every extra kilobyte delays the moment a visitor finally sees something useful. Search engines notice it, and users on mobile data notice it faster. The encouraging part is that image delivery is one of the few areas where the fixes are well documented, mostly automatable, and visible in the metrics almost immediately.

SEO guidelines every website should follow

  • avatar
  • 28.0K Views
  • 14 mins read
Preview image

Search engine optimization has a reputation for being complicated, but a big part of it comes down to fundamentals. Search engines crawl millions of pages every day and reward the ones that are well structured, fast and easy to understand. The surprising part is how many websites, including professionally built ones, still fail at the basics and quietly lose positions in search results because of it.

Serial communication between two Arduino boards

Available to registered members only
  • avatar
  • 803 Views
  • 9 mins read
Preview image

Getting two Arduino boards to talk to each other opens up projects that a single board can't handle on its own. You might have one board reading sensors in one corner of a room and another driving a display somewhere else, and the two need to share what they know. Serial communication is one of the simplest ways to make that happen, and it works with almost any Arduino model you have lying around. This article walks through connecting two Arduino Nano boards and passing data back and forth over their serial ports.

Getting started with the HC-05 Bluetooth module

  • avatar
  • 1.2K Views
  • 1 Like
  • 16 mins read
Preview image

The HC-05 is one of the most popular Bluetooth modules in the Arduino ecosystem, and for good reason. It's affordable, well documented, and flexible enough to handle a wide range of use cases. It can operate as both a master and a slave device, meaning it can initiate connections to other Bluetooth devices as well as wait for them. For projects where you just need a phone to talk to an Arduino, that distinction doesn't matter much. But for anything more involved, like two Arduino boards communicating wirelessly, the HC-05 is the right tool for the job.

Handling file uploads in Laravel 13

  • avatar
  • 4.7K Views
  • 9 mins read
Preview image

Handling file uploads is one of those things that sounds simple at first but has plenty of moving parts: storage drivers, validation, security, public access, multiple files. Laravel 13 ships with a solid, well-rounded set of tools to deal with all of this without pulling in third-party packages. This article walks through the full lifecycle of a file upload in a Laravel 13 application, from the HTML form to retrieving files from storage, with practical examples along the way.

Keep your codebase clean with Git hooks

  • avatar
  • 853 Views
  • 9 mins read
Preview image

Every developer has been there: you push a commit, CI fails, and it turns out there was a linting error, a forgotten debug statement, or a test that nobody ran. Pre-commit hooks are the safety net that catches these problems before they ever leave your machine. They are not a complex feature or an advanced Git topic. They are just scripts, and once you understand how they work, you will find yourself reaching for them on every project.



Playing popular songs with Arduino and a buzzer

avatar

HiBit

Travis Scott - Sicko mode has been added.

Enjoy!

Playing popular songs with Arduino and a buzzer

avatar

HiBit

Passacaglia has been added.

Enjoy!

Playing popular songs with Arduino and a buzzer

avatar

HiBit

Imagine Dragons - Bones has been added.

Enjoy!

Playing popular songs with Arduino and a buzzer

avatar

HiBit

Dandadan - On the way has been added.

Enjoy!

Playing popular songs with Arduino and a buzzer

avatar

HiBit

Attack on Titan - The Rumbling has been added.

Enjoy!

Reading MPU9250 sensors with Arduino

avatar

HiBit

The repository shows how to read all three sensors from the MPU9250, including the magnetometer. Although some examples only print roll and pitch, the quaternion-based code fuses the full 9-axis data and represents the complete orientation.

Playing popular songs with Arduino and a buzzer

avatar

HiBit

Dr. Dre ft Snoop Dogg - Still D.R.E. has been added.

Enjoy!

Playing popular songs with Arduino and a buzzer

avatar

HiBit

It's not possible to make a direct MP3 to buzzer decoder because a buzzer (especially a typical piezo buzzer) can only produce simple tones at specific frequencies, not complex audio like speech or music. MP3 files contain compressed, multi-frequency audio data far beyond what a buzzer can reproduce. At best, you could extract a basic melody or rhythm if the MP3 is extremely simple (like single-tone music), but decoding full MP3 audio into something a buzzer can play accurately isn't feasible.

Playing popular songs with Arduino and a buzzer

avatar

HiBit

Jujutsu Kaisen - Specialz has been added.

Enjoy!

Complementary filter and relative orientation with MPU6050

avatar

HiBit

Thank you, very appreciated!

The issue is likely that the MPU6050 isn't properly initialized after power-up. Make sure the setup() function runs completely each time the device is powered on, and consider adding a small delay before using the sensor.

Playing popular songs with Arduino and a buzzer

avatar

HiBit

Yung Kai - Blue has been added.

Enjoy!

Playing popular songs with Arduino and a buzzer

avatar

HiBit

First day out has been added.

Enjoy!

Playing popular songs with Arduino and a buzzer

avatar

HiBit

Vanilla Ice - Ice ice baby has been added.

Enjoy!

Getting real-time position using MPU9250

avatar

HiBit

We used an existing library for this. You can see how it was implemented in the code snippet above.

It is also accessible in our GitHub repository.

Reading MPU9250 sensors with Arduino

avatar

HiBit

The article Getting Real-Time Position Using MPU9250 explains how to calculate real-time position using sensor data.

Complementary filter and relative orientation with MPU9250

avatar

HiBit

You can learn how we calculate pitch and roll using a complementary filter in this project; the file is available on GitHub.

Playing popular songs with Arduino and a buzzer

avatar

HiBit

Assassin's Creed 2 - Ezio's Family has been added!

Enjoy!

Playing popular songs with Arduino and a buzzer

avatar

HiBit

Livin' on a prayer has been added.

Enjoy!

Playing popular songs with Arduino and a buzzer

avatar

HiBit

Crystal Castles Kerosene has been added.

Enjoy!

How to use the NRF24L01 module with Arduino

avatar

HiBit

The D10 pin has a specific function; it must be set as an output for the Arduino to operate as the master in an SPI communication protocol. In the provided wiring and code, the pin is already functioning as an output.


HiBit community member since December 2020