ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

Arduino Project: Custom Interior Lighting for Car (#1)

Автор: TexasAggieRC

Загружено: 2013-07-29

Просмотров: 6047

Описание: I've had a decent ambient lighting setup in my car for a few months (   • 2011 Ford Escape Custom Ambient Lighting  ). And while it looks cool, I knew I could do better. So I set out to design the ultimate lighting setup. Using an Arduino to drive the LEDs would give me ultimate flexibility, since I would be the one writing the code. If I come up with a new idea for a cool animation, I just have to write the animation and upload the new code.

In this video I walk through some of the pieces I've been working on. I'll also add some more information here that I either left out or was too boring to include in the video.

Arduino Mega. Not much to say other than it has lots more pins than the Uno and lots more memory. Both useful characteristics for me.

Display. The display is an OLED character display from Newhaven Displays (NHD‐0216KZW‐AB5). Similar displays have a reputation for being quite buggy when being integrated with the Arduino. What I have found is that every person who reports this tries using the display in 4-bit mode. If you hook it up with 8 data pins instead of 4, the default LiquidCrystal library works flawlessly. Once I did this, all the weird behavior was totally gone.

Rotary Encoder (http://www.adafruit.com/products/377). The rotary encoder is a simple device that reads rotation. For each click of the rotary encoder, it reports which direction it was turned. This makes it very handy for navigating a menu. This particular encoder also has an integrated button that I use as a Select function. There are numerous cars and other devices that use this in a similar fashion.

The LED strips are generic 12V RGB strips (http://www.adafruit.com/products/285 or http://www.adafruit.com/products/346). The Arduino only outputs 5V, however, so it cannot power these directly. Instead, the Arduino drives a set of transistors that uses the 5V from the Arduino to switch 12V to the LEDs. At this point, I have each channel (red, green, and blue) hooked to their own individual pins and use analogWrite() on those. Later on, I will likely add shift registers to expand the number of PWM outputs so I can use more channels.

Each "LED" in the strip is actually composed of three smaller LEDs: red, green, blue. By varying the amount of each color, you can vary the overall color of the strip. For example, pure red and pure blue will yield a purple color. Adding green to this mix will make the purple whiter.

As I mention in the video, humans don't think in RGB. In this video, I briefly describe the HSL color space that is a more natural mapping to describe colors. For the animations, I expect to use a mixture of both color spaces, since some effects will be easier to implement in one instead of the other.

Parallel processing / Threading. The Arduino, like any single-core machine, is only capable of doing one thing at a time. I found a library called mthread that lets you fake it. As I mentioned, this will become extremely important because I want to be able to control each strip seemingly independently of the rest.

If you have any other questions, please ask!

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Arduino Project: Custom Interior Lighting for Car (#1)

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

Arduino Project: Custom Interior Lighting for Car (#2)

Arduino Project: Custom Interior Lighting for Car (#2)

🤫ЗАМЕНА microUSB НА USB-C КЛЕЕМ ДЛЯ ПАЙКИ НОВЫЙ ПОДХОД К УСТАНОВКЕ КОМПОНЕНТОВ О КОТОРОМ МОЛЧАТ🤐

🤫ЗАМЕНА microUSB НА USB-C КЛЕЕМ ДЛЯ ПАЙКИ НОВЫЙ ПОДХОД К УСТАНОВКЕ КОМПОНЕНТОВ О КОТОРОМ МОЛЧАТ🤐

Сравнение фотофонарей от SIDADNE и SmalRig с настоящими фотофонарями

Сравнение фотофонарей от SIDADNE и SmalRig с настоящими фотофонарями

Очень немногие знают удивительный секрет этой маленькой вещицы!

Очень немногие знают удивительный секрет этой маленькой вещицы!

Валентин Пикуль пошел за караваном PQ17. Аятолла и 40 разбойников. Над всей Испанией безумные тарифы

Валентин Пикуль пошел за караваном PQ17. Аятолла и 40 разбойников. Над всей Испанией безумные тарифы

The Internet Was Weeks Away From Disaster and No One Knew

The Internet Was Weeks Away From Disaster and No One Knew

REMONTADA BYŁA TAK BLISKO! WIELKIE SHOW, BARCA WALCZĄCA DO KOŃCA, ALE W FINALE ZAGRA ATLETICO!

REMONTADA BYŁA TAK BLISKO! WIELKIE SHOW, BARCA WALCZĄCA DO KOŃCA, ALE W FINALE ZAGRA ATLETICO!

МОЖНО ЛИ ОБДЕЛАТЬСЯ ОТ ЗВУКА?

МОЖНО ЛИ ОБДЕЛАТЬСЯ ОТ ЗВУКА?

БЕЗУМНОЕ изобретение от 60-летнего фермера! Бесконечный бесплатный источник от микроволновых тра....

БЕЗУМНОЕ изобретение от 60-летнего фермера! Бесконечный бесплатный источник от микроволновых тра....

F-15 spadają! Straty lotnicze nad Iranem

F-15 spadają! Straty lotnicze nad Iranem

Arduino Project: Custom Interior Lighting for Car (#8)

Arduino Project: Custom Interior Lighting for Car (#8)

Nawet USA nie wierzą, co Korea Południowa właśnie zrobiła dla Ukrainy… Rosja UTKNĘŁA

Nawet USA nie wierzą, co Korea Południowa właśnie zrobiła dla Ukrainy… Rosja UTKNĘŁA

M5 Pro & Max are INSANE... And you're NOT going to buy them

M5 Pro & Max are INSANE... And you're NOT going to buy them

Мы бесплатно разработали движок рендеринга на основе искусственного интеллекта.

Мы бесплатно разработали движок рендеринга на основе искусственного интеллекта.

Powerful Particle Flow Animation in Blender 5.0

Powerful Particle Flow Animation in Blender 5.0

Red Bull Skoki w Punkt 2026: Małysz, Goldberger, Schmitt, Morgenstern i Ahonen wybierają drużyny

Red Bull Skoki w Punkt 2026: Małysz, Goldberger, Schmitt, Morgenstern i Ahonen wybierają drużyny

IRAN BLOKUJE ORMUZ - Co dalej z ropą i gazem? USA przejmą KUBĘ? | Biznes Teraz

IRAN BLOKUJE ORMUZ - Co dalej z ropą i gazem? USA przejmą KUBĘ? | Biznes Teraz

Saudyjczycy i Katarczycy planują atak na Iran? Szokujące doniesienia

Saudyjczycy i Katarczycy planują atak na Iran? Szokujące doniesienia

"Przekroczyli wszystkie czerwone linie". Kraje Bliskiego Wschodu grożą odwetem

I flucked up damit

I flucked up damit

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]