Vista Normal

Hay nuevos artículos disponibles. Pincha para refrescar la página.
Hoy — 24 Mayo 2025Salida Principal

The Need For Speed?

24 Mayo 2025 at 14:00

We wrote up a video about speeding up Arduino code, specifically by avoiding DigitalWrite. Now, the fact that DigitalWrite is slow as dirt is long known. Indeed, a quick search pulls up a Hackaday article from 2010 demonstrating that it’s fifty times slower than toggling the pin directly using the native pin registers, but this is still one of those facts that gets periodically rediscovered from generation to generation. How can this be new again?

First off, sometimes you just don’t need the speed. When you’re just blinking LEDs on a human timescale, the general-purpose Arduino functions are good enough. I’ve written loads of useful firmware that fits this description. When the timing requirements aren’t tight, slow as dirt can be fast enough.

But eventually you’ll want to build a project where the old slow-speed pin toggling just won’t cut it. Maybe it’s a large LED matrix, or maybe it’s a motor-control application where the loop time really matters. Or maybe it’s driving something like audio or video that just needs more bits per second. One way out is clever coding, maybe falling back to assembly language primitives, but I would claim that the right way is almost always to use the hardware peripherals that the chipmakers gave you.

For instance, in the end of the video linked above, the hacker wants to drive a large shift register string that’s lighting up an LED matrix. That’s exactly what SPI is for, and coming to this realization makes the project work with timing to spare, and in just a few lines of code. That is the way.

Which brings me to the double-edged sword that the Arduino’s abstraction creates. By abstracting away the chips’ hardware peripherals, it makes code more portable and certainly more accessible to beginners, who don’t want to learn about SPI and I2C and I2S and DMA just yet. But by hiding the inner workings of the chips in “user friendly” libraries, it blinds new users to the useful applications of these same hardware peripherals that clever chip-design engineers have poured their sweat and brains into making do just exactly what we need.

This isn’t really meant to be a rant against Arduino, though. Everyone has to start somewhere, and the abstractions are great for getting your feet wet. And because everything’s open source anyway, nothing stops you from digging deeper into the datasheet. You just have to know that you need to. And that’s why we write up videos like this every five years or so, to show the next crop of new hackers that there’s a lot to gain underneath the abstractions.

This article is part of the Hackaday.com newsletter, delivered every seven days for each of the last 200+ weeks. It also includes our favorite articles from the last seven days that you can see on the web version of the newsletter. Want this type of article to hit your inbox every Friday morning? You should sign up!
AnteayerSalida Principal

Understanding Linear Regression

9 Mayo 2025 at 02:00

Although [Vitor Fróis] is explaining linear regression because it relates to machine learning, the post and, indeed, the topic have wide applications in many things that we do with electronics and computers. It is one way to use independent variables to predict dependent variables, and, in its simplest form, it is based on nothing more than a straight line.

You might remember from school that a straight line can be described by: y=mx+b. Here, m is the slope of the line and b is the y-intercept. Another way to think about it is that m is how fast the line goes up (or down, if m is negative), and b is where the line “starts” at x=0.

[Vitor] starts out with a great example: home prices (the dependent variable) and area (the independent variable). As you would guess, bigger houses tend to sell for more than smaller houses. But it isn’t an exact formula, because there are a lot of reasons a house might sell for more or less. If you plot it, you don’t get a nice line; you get a cloud of points that sort of group around some imaginary line.

There are mathematical ways to figure out what line you should imagine, but you can often eyeball it, too. The real trick is evaluating the quality of that imaginary line.

To do that, you need an error measure. If you didn’t know better, you’d probably think expressing the error in terms of absolute value would be best. You know, “this is 10 off” or whatever. But, as [Vitor] explains, the standard way to do this is with a squared error term R2. Why? Read the post and find out.

For electronics, linear regression has many applications, including interpreting sensor data. You might also use it to generalize a batch of unknown components, for example. Think of a batch of transistors with different Beta values at different frequencies. A linear regression will help you predict the Beta and the error term will tell you if it is worth using the prediction or not. Or, maybe you just want to make the perfect cup of coffee.

Digital Squid’s Behavior Shaped by Neural Network

26 Abril 2025 at 11:00

In the 90s, a video game craze took over the youth of the world — but unlike today’s games that rely on powerful PCs or consoles, these were simple, standalone devices with monochrome screens, each home to a digital pet. Often clipped to a keychain, they could travel everywhere with their owner, which was ideal from the pet’s perspective since, like real animals, they needed attention around the clock. [ViciousSquid] is updating this 90s idea for the 20s with a digital pet squid that uses a neural network to shape its behavior.

The neural network that controls the squid’s behavior takes a large number of variables into account, including whether or not it’s hungry or sleepy, or if it sees food. The neural network adapts as different conditions are encountered, allowing the squid to make decisions and strengthen its algorithms. [ViciousSquid] is using a Hebbian learning algorithm which strengthens connections between neurons which activate often together. Additionally, the squid’s can form both short- and long-term memories, and the neural network can even form new neurons on its own as needed.

[ViciousSquid] is still working on this project, and hopes to eventually implement a management system in the future, allowing the various behavior variables to be tracked over time and overall allow it to act in a way more familiar to the 90s digital pets it’s modeled after. It’s an interesting and fun take on those games, though, and much of the code is available on GitHub for others to experiment with as well. For those looking for the original 90s games, head over to this project where an emulator for Tamagotchis was created using modern microcontroller platforms.

LLMs Coming for a DNA Sequence Near You

25 Abril 2025 at 02:00
An illustration of two translucent blue hands knitting a DNA double helix of yellow, green, and red base pairs from three colors of yarn. Text in white to the left of the hands reads: "Evo 2 doesn't just copy existing DNA -- it creates truly new sequences not found in nature that scientists can test for useful properties."

While tools like CRISPR have blown the field of genome hacking wide open, being able to predict what will happen when you tinker with the code underlying the living things on our planet is still tricky. Researchers at Stanford hope their new Evo 2 DNA generative AI tool can help.

Trained on a dataset of over 100,000 organisms from bacteria to humans, the system can quickly determine what mutations contribute to certain diseases and what mutations are mostly harmless. An “area we are hopeful about is using Evo 2 for designing new genetic sequences with specific functions of interest.”

To that end, the system can also generate gene sequences from a starting prompt like any other LLM as well as cross-reference the results to see if the sequence already occurs in nature to aid in predicting what the sequence might do in real life. These synthetic sequences can then be made using CRISPR or similar techniques in the lab for testing. While the prospect of building our own Moya is exciting, we do wonder what possible negative consequences could come from this technology, despite the hand-wavy mention of not training the model on viruses to “to prevent Evo 2 from being used to create new or more dangerous diseases.”

We’ve got you covered if you need to get your own biohacking space setup for DNA gels or if you want to find out more about powering living computers using electricity. If you’re more curious about other interesting uses for machine learning, how about a dolphin translator or discovering better battery materials?

Reminisce.ai

Por: EasyWithAI
25 Agosto 2023 at 12:17
Reminisce.ai is an AI-powered online learning platform that makes it easy and fun to build technology skills and career paths. It uses cheat sheets, quizzes, and games to help you learn IT skills like Kubernetes, React, and AWS. With personalized career coaching, you can develop the right skills for roles like AI Engineer, Blockchain Developer, […]

Source

DeepLearning.AI TensorFlow Developer Professional Certificate

Por: EasyWithAI
20 Julio 2023 at 21:10
Category – TensorFlow, Deep Learning Course Difficulty – Average Course Length – 2 Months @ 10h per Week Price – $49.99 Rating  4/5 View Course The DeepLearning.AI TensorFlow Developer Professional Certificate program is a comprehensive and hands-on learning experience designed to equip individuals with applied machine learning skills using TensorFlow. This program is offered […]

Source

Univerbal

Por: EasyWithAI
10 Enero 2023 at 16:48
Univerbal is an AI-powered language learning tool that allows you to practice speaking a new language in unscripted and dynamic conversations with unique AI personas. Using the latest language models, Univerbal’s AI will respond to your speech in your chosen language, and the user interface provides all the necessary tools you need to look up […]

Source

Akadimia Ai

Por: EasyWithAI
20 Septiembre 2023 at 19:38
Experience a transformative educational journey with Akadimia that opens new dimensions of learning. This tool lets you engage in insightful conversations with historical figures like Nikola Tesla through cutting-edge augmented reality (AR) technology, making the past come alive. Akadimia lets you unleash your curiosity and immerse yourself in a unique learning experience. You can start […]

Source

Kippy

Por: EasyWithAI
22 Febrero 2024 at 13:17
Kippy is an AI-powered language tutor that helps you practice speaking English and 8 other languages (including Spanish, German, Italian, Chinese, and more) through realistic conversations. With Kippy, you can chat anytime, anywhere to boost your confidence and skills in your preferred language. It listens, provides feedback, and suggests responses to continue conversations. The app […]

Source

Lune AI

Por: EasyWithAI
14 Mayo 2024 at 12:15
Lune AI is a language-learning app for iOS and Android that uses AI to tailor lessons to your current proficiency level. Its key features include personalized content generation, quizzes, flashcards, and lessons that adapt as you progress. The Lune AI app tracks the vocabulary and concepts you’ve mastered and introduces new material at a steady […]

Source

DeepL Write

Por: EasyWithAI
10 Enero 2024 at 15:58
DeepL Write is a free AI-powered writing companion that is great for improving your writing in English and German. After typing or pasting in your text, the tool automatically suggests improvements to make your writing clearer, more precise, and error-free. You can change the output writing style using the drop down button, currently there are […]

Source

Clozemaster

Por: EasyWithAI
11 Enero 2024 at 14:08
Clozemaster is a fun and engaging language learning game that uses AI and machine learning to help with vocabulary practice in over 50 different languages. It removes a word from sentences and you must choose the correct missing word. Sentences and vocabulary lists come from quality external datasets tailored to each language and are also […]

Source

TalkBerry

Por: EasyWithAI
29 Abril 2023 at 18:00
Looking to take your language skills to new heights? TalkBerry offers a fun and easy solution with AI. This AI powered language learning app features realistic conversations with over 20 different scenarios available in multiple languages including English, Japanese, French, Chinese, and more. TalkBerry also offers personalized tutor sessions tailored to suit your individual needs […]

Source

Learn.xyz

Por: EasyWithAI
14 Septiembre 2023 at 13:27
Learn.xyz is an AI-powered mobile learning app that makes acquiring knowledge both fun and social! The app features a magic search bar with the ability to ask any question, and Lumi, the AI sidekick, will help you create customized lessons on any topic. You can learn new topics daily, rack up streaks, get inspired by […]

Source

The Best AI Tools for Students

Por: EasyWithAI
12 Junio 2023 at 15:18
AI tools are becoming increasingly popular in the education sphere. There are number of AI tools to help students with various aspects of their academic work, such as writing, research, homework, note-taking and more. In this article, we will explore some of the best AI tools for students that can enhance their learning experience and […]

Source

Think In Italian AI Language Tutor

Por: EasyWithAI
9 Abril 2024 at 14:06
Think In Italian’s AI Language Tutor offers tailored, dynamic lessons through authentic conversations to help anyone learn Italian. It can adapt to your level, provide helpful prompts and corrections, and incorporates cutting-edge speech technology for speech recognition. The AI tutor can also provide instant feedback on your grammar and pronunciation, making it easier to learn […]

Source

Langcheck

Por: EasyWithAI
8 Febrero 2024 at 14:28
Langcheck is an English language and spellchecking tool that lets you easily paste text and get it translated into perfect English. This is a useful tool for all non-native English speakers who want to verify their writing (perhaps before sending an important email or such). The tool lets you select which style of writing to […]

Source

Best AI Language Learning Apps

Por: EasyWithAI
15 Enero 2024 at 16:26
Learning a new language can be difficult and frustrating at times, but AI-powered language learning tools are making it easier than ever. With so many options available though, how do you choose the right one? In this post we’ll analyzes some of the top AI language learning tools and apps on the market to help […]

Source

❌
❌