avatar
HiBit
927
213 44


Laravel blade structure for scalable projects

  • avatar
  • 4.9K Views
  • 2 Likes
  • 5 mins read
Preview post image

Projects tend to grow in size and level of complexity resulting in more and more files. A good base structure may help creating developer-friendly, maintainable and scalable product. Blade is a simple and powerful templating engine included with Laravel. Unlike some PHP templating engines, Blade does not restrict you from using plain PHP code in your templates. In fact, all Blade templates are compiled into plain PHP code and cached until they are modified, meaning Blade adds essentially zero overhead to your application. Blade template files use the .blade.php file extension and are typically stored in the resources/views directory.

How to use the L298N motor driver module

  • avatar
  • 69.3K Views
  • 23 Likes
  • 8 mins read
Preview post image

The L298N Motor Driver is a controller that uses an H-Bridge to easily control motors direction and PWM to control the speed. This module allows you to independently manage two motors of up to 2A each in both directions. Supply range may vary between 5V and 35V, enough for most DC motor projects.

How to enable hibernation in Linux

  • avatar
  • 14.6K Views
  • 9 Likes
  • 7 mins read
Preview post image

Hibernation was designed for laptops and might not be available for all PCs. It uses less power than sleep and when you start up the PC again, you're back to where you left off. Hibernation suspends to disk unlike the sleep option that suspends to RAM. That's why it takes a bit longer to wake up from hibernation than from sleep.

 Join Our Monthly Newsletter

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

We never send SPAM nor unsolicited emails

Reading MPU6050 sensors with Arduino

  • avatar
  • 5.8K Views
  • 6 Likes
  • 10 mins read
Preview post image

The MPU-60X0 is the world's first integrated 6-axis MotionTracking device that combines a 3-axis gyroscope, 3-axis accelerometer and a Digital Motion Processor (DMP) all in a small package. It helps to measure velocity, orientation, acceleration, displacement and other motion like features

The MPU-6050 features three 16-bit analog-to-digital converters (ADCs) for digitizing the gyroscope outputs and three 16-bit ADCs for digitizing the accelerometer outputs. For precision tracking of both fast and slow motions, the parts feature a user-programmable gyroscope full-scale range and a user-programmable accelerometer full-scale range.

Sync local and remote directories with Rsync

  • avatar
  • 2.2K Views
  • 1 Like
  • 4 mins read
Preview post image

Rsync is a very flexible network-enabled syncing tool. Due to its ubiquity and its popularity as a tool for system scripts, it's included on most Linux distributions by default. It efficiently copies and sync files to or from a remote system. It’s faster than scp because rsync uses a remote-update protocol which allows transferring just the differences between two sets of files. The first time, it copies the whole content of a file or a directory from source to destination but from next time, it copies only the changed blocks and bytes to the destination.

Getting started with Arduino Uno

  • avatar
  • 2.4K Views
  • 1 Like
  • 5 mins read
Preview post image

Arduino is an open-source electronics platform based on easy-to-use hardware and software. Arduino boards are able to read inputs - light on a sensor, a finger on a button, or a Twitter message - and turn it into an output - activating a motor, turning on an LED, publishing something online. You can tell your board what to do by sending a set of instructions to the microcontroller on the board. To do so you use the Arduino programming language and the Arduino Software (IDE).

DIY - Universal RC Joystick

  • avatar
  • 4.5K Views
  • 9 Likes
  • 23 mins read
Preview post image

Controlling devices over a distance opens lots of possibilities. Our Arduino roadmap contains many projects that must be controlled remotely and sometimes on a long-distance. Of course, it can be done with a PC but our experience has shown that it becomes complicated when you need long way, portable and rapid communications. Our solution was designing a multi-functional remote controller, we have called it AirControl. Aware of the needs it will have 4 push buttons, 2 switch buttons, 2 potentiometers and two analog modules. Additionally, each analog joystick module has integrated push button.

Getting started with MongoDB

  • avatar
  • 1.5K Views
  • 6 Likes
  • 11 mins read
Preview post image

MongoDB is a popular open source and document oriented database system. It belongs to a family of databases called NoSQL, which is different from the traditional table based SQL databases. It makes use of collections, each having multiple documents, and allows the user to store data in a non relational format. Data is stored in flexible, JSON-like documents where fields can vary from document to document. That's the reason for calling it schemaless database.

Play Home Alone song with a piezo buzzer and Arduino

  • avatar
  • 3.2K Views
  • 3 Likes
  • 7 mins read
Preview post image

Home Alone has since been considered one of the best Christmas films and Somewhere in My Memory has been nominated as best original song. We wanted to recreate the melody of the film's theme song with a piezo buzzer and share with you. Buzzer is used to generate sound, beep or even melody of a song. It can be found in alarm devices, computers, timers and confirmation of user input such as a mouse click or keystroke.

What's new in PHP 8.2

  • avatar
  • 2.3K Views
  • 2 Likes
  • 5 mins read
Preview post image

PHP 8.2 has been released on December 8, 2022. We'll go through most important features, performance improvements, changes and deprecations one by one.

Read only properties were introduced in PHP 8.1. Now, PHP 8.2 is adding support to declare the entire class as read only.

If you declare a class as read only, all its properties will automatically inherit the read only feature. Thus, declaring a class read only is the same as declaring every class property as read only.



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.

How to use the NRF24L01 module with Arduino

avatar

HiBit

I suggest verifying the wiring to confirm that all components are correctly connected, followed by re-uploading the code. The examples provided in the post have been tested and are operational. Please consider that there might be a physical problem, such as a damaged or defective module.

Playing popular songs with Arduino and a buzzer

avatar

HiBit

Coldplay - Hymn for the weekend has been added.

Enjoy!

Playing popular songs with Arduino and a buzzer

avatar

HiBit

Was wollen wir trinken has been added.

Enjoy!

Playing popular songs with Arduino and a buzzer

avatar

HiBit

The board has built-in memory. If additional memory is needed, an alternative board can be used.

Playing popular songs with Arduino and a buzzer

avatar

HiBit

The Doom melody requires more memory than others, so make sure your board can handle that amount. If not, you will usually encounter an error during compilation.

As a workaround, you can try removing some of the notes (along with their respective durations) to fit the melody on the board.

Playing popular songs with Arduino and a buzzer

avatar

HiBit

We couldn't find notes for that song that will sound good with a buzzer.


HiBit community member since December 2020