Neat little project which showcases the power of the ATTiny85. Nice job!
@alexandruchiperi16754 жыл бұрын
Is it possible to connect 2 led strip on attiny85, one led strip for right turn signal and one for left turn signal, as well as reverse lights
@nelsonsimango56695 жыл бұрын
This is my favorite project you thus far, Great work👌 and Thank you for sharing your knowledge.
@IonutFedaceag5 жыл бұрын
Thanks... ;)
@ShawnA560 Жыл бұрын
the issue is that the turn signals are not steady signal as you showed in your demo. the turn signal are like a square wave which will affect the leds when there is a brake or hazard with brake . have you tested this on a car?
@tahubulet6404 жыл бұрын
Best ws2812 project... As always
@thomasalmeida34712 жыл бұрын
do you have a code like this but with 2 turn signals so i can use 1 arduino nano for both sides of the tails lights just sending the data to the other side?
@SnoopyCoupe Жыл бұрын
Old comment, but I *think* you could define another strip (output pin), another turn signal pin state, and duplicate the turn signal section using those two new parameters. The ATiny couldn't do it (not enough pins, but the Nano you're using does. I'm learning this stuff myself, so could be wildly wrong. I think the point with using the ATiny is to basically be able to contain it all in the light, for scooters and motorcycles. A custom board with an ATiny, VREG, and optocouplers would be pretty dang small.
@MrBrentSke3 жыл бұрын
hey very nice but how can i switch from left turn singal to right i want if you want to go left with the car the led strip goe from right to left en wen i want to turn right the led strip go left to right in one very long strip i have 2 meter 144led per meter greeting from belgium
@thematrixeyes77764 жыл бұрын
*GREAT JOB* Thanks for sharing 👍👍👍👍👍
@IonutFedaceag4 жыл бұрын
Your welcome, again! :))
@opelcambo3 жыл бұрын
@@IonutFedaceag are you available to talk.
@opelcambo3 жыл бұрын
@@IonutFedaceag I have arduino nano I am trying to learn how to do this But how are you capable of making a physical hardware switch create an actual output I understand I can program led to flash when there is 12vpower But how can I have 3 switch (brake left and right) How can I input my three options from An actual switch
@imadjawad44085 жыл бұрын
Outstanding as always!
@IonutFedaceag4 жыл бұрын
👍
@supersdouper4 жыл бұрын
Greetings ! i love your project for the motorcycle ! 1 question ! on the schematic there is only 1 turn signal switch ,how you define left and right ?also where you define the PWM pin for the strip if you use arduino ?
@opelcambo3 жыл бұрын
i have a arduino nano, ive just uploaded the code, and i have changed 50 to 144 as i have 144 leds, but ive no idea what pin your using to output to the led strip, and i dont no how to activate/test anything?
@wawanirianto21303 жыл бұрын
Please make the code, if it combined with sp110e
@rudyvlog28972 жыл бұрын
Hi sir good day can i use ws2811 led strip in this project? Will it still work?
@SnoopyCoupe Жыл бұрын
Shouldn't be any problem with that. FastLED supports WS2811. You might have to note that in the code (change references from "NEOPIXEL" in the FastLED.addLeds call to "WS2811", but it may still work anyway. Also may have to add "GRB" to that call to get the colors right, since the default seems to be defining colors "RGB" if not specified (which it isn't in this sketch.)
@drunkenmaster7963 жыл бұрын
Great work! I tried to have left and right tirn feature in one strip only but with attiny 85 sacrifising the tail lights , I've been trying for more than a week but sadly it didn't work for me for some reason. If you could guide me how I can have one strip only with attiny 85 that can have both left and right turn animation with brake light and reverse lights so in all 4 inputs only . PS: I don't need this for a car , but for a small scale demo project I've been working on . Any help is greatly appreciated!
@IonutFedaceag3 жыл бұрын
From what i remember, i also tried to do left, right, hazard and daylight in one strip with attiny85 but i didn't had enough space to make the sketch, 8Kb it wasn't enough. I recommend you to use a arduino pro mini 5v, it's much more faster, easier and you don't have to sacrifice anything. I'm glad you like it ! ;) :)
@gabrielstanciu13944 жыл бұрын
What is the data pin for the led strip when using arduino?
@IonutFedaceag4 жыл бұрын
At the start of the sketch, you must comment the " //input pins for attiny85 " and uncomment " //input pins for arduino " by adding and removing // from the start of the lines and also in the setup void this two lines (line 53 and 54): //FastLED.addLeds(leds[0], NUM_LEDS_PER_STRIP); //led strip front left for uncomment for arduino FastLED.addLeds(leds[0], NUM_LEDS_PER_STRIP); //led strip front left for uncomment for attiny85
@gabrielstanciu13944 жыл бұрын
@@IonutFedaceag Thanks a lot!
@IonutFedaceag4 жыл бұрын
@@gabrielstanciu1394 With pleasure! ;)
@PaulCan20064 жыл бұрын
Hi, great work exactly what i was looking for to put on motorcycle - I have 15 leds with data pin 2 , what do i have to change to adopt this exact scenario with arduino for now
@IonutFedaceag4 жыл бұрын
Hi and thanks. You must use an even number of leds for the math to work ok and after you change the number of leds (NUM_LEDS_PER_STRIP), everything should work !
@bob-ny6kn2 жыл бұрын
@@IonutFedaceag Hello. You can modify your script for an odd number of LEDs to let the "copy/paste" hobbyists enjoy your thourough code. Very good. Sorry for your struggle, hope you remain patient and kind.
@Craigrobbo2k75 жыл бұрын
is it possible to have the turn signal so it flows off as well as flowing on?
@IonutFedaceag5 жыл бұрын
Yes it is, but it isn't integrated because i think that you will have problems with the police if you implemented in a vehicle. The line that is responsible with the off sequence for the turn signal is find in the "turn signal function" at line 95 - this is the one " fill_solid(leds[0], NUM_LEDS_PER_STRIP, CRGB::Black); " and you should change also the delay for the animation to black " delayTurnLedOff ". You can reuse the for loop that is turning on the signal and make it to turn off the signal (for loop from line 71 to 84). But i repeat, i don't recommend, the way that is made, actually the way that Audi thought it and made it it's more visible and safe...
@Craigrobbo2k75 жыл бұрын
@@IonutFedaceag Thank you so much :) My Current alfa Romeo has it flowing on & off and even passed an MOT like this :) I hope it should be ok as I not had a problem ever so far :) Thanks again you are a big help and I love your projects. i want to keep watchign and following for some new and cool ideas
@Craigrobbo2k75 жыл бұрын
@@IonutFedaceag Thank you very much, one last quiestion, Can I use a diferent capacitor instead of the 1UF 10v as I am struggling to find this exact one thats not microscopic Thank you
@IonutFedaceag5 жыл бұрын
@@Craigrobbo2k7 You can play with the value, it's not a fix value, but don't go lower 1uF and from my opinion, higher than 10uF. ( 1uF 10v is not microscopic ... www.tedss.com/2020060479 ) Your welcome! ;)
@bangunsetyoanggoro61563 жыл бұрын
Thanks my mate, cheers
@PaulCan20064 жыл бұрын
Hi I would like to add brightness control for the TS amber , can you please advice?
@IonutFedaceag4 жыл бұрын
Well, the amber / the signal color i thought it to be always at full brightness, so i've use hex color method to set the color and the brightness is at 100% by default. To be able to control the brightness you must modify the signal functions and use the hsv color method.
@AlphaSteelFang0055 жыл бұрын
Amazing work, I've been following the projects and they are great, can you do a video showing how to code the lights?
@IonutFedaceag5 жыл бұрын
Thanks. I could do a walk through the code, explain sections of the code and the logic behind, but to code live it will not be a great idea, because i'm not a programmer and i don't know the proper terminology. I think i will do a future video...
@AlphaSteelFang0055 жыл бұрын
@@IonutFedaceag that would be awesome, I'm looking forward to video!
@jeremyboven3 жыл бұрын
So how do you impliment right and left turn signal.... ? I noticed everyone that asks a legit question you dont reply. But if they say good job, you reply... what's up with that.. because if you need another input pin for left and right on the ATINY then what ? Are you using 1 MCU per side.. ? The way I see it you dont have enough input pins for 1 controller to do left and right ?
@IonutFedaceag3 жыл бұрын
As mentioned in the title, in the connection diagram and as I explained in the video, in this version i made "dedicated strips", which means you will need one for each side/corner, one for front left, one for front right, one for rear left and one for rear right... The basic idea is that it can be easily integrated into the headlight or taillight housing. Unfortunately, the covid pandemic and the fact that I became a father for more than six months, for the moment eliminated my free time that I had and invested in this project on youtube. Regarding your presumption, it's completely wrong, it's based only on the time required to reply and believe me when I say, this kind of project/channel requires a lot of time, even for the replies, time that is not paid, it is only pleasure and satisfaction that i spread some knowledge that i get in return and sometimes some small donations.
@عمرريس-ي8ت5 жыл бұрын
Smart solution
@IonutFedaceag4 жыл бұрын
👍
@chbetz5 жыл бұрын
H! Is it possible to choose how many LEDs will switch on with turn signals? Or is it a preset fixed parameter?
@IonutFedaceag5 жыл бұрын
I thought it and write it the other way around and the signal will always be using all the strip. Actually the tail and brake will override the signal leds and it's not fix, it's dynamic, more precise is a quarter from the total number of leds. If you wanna change that value, search for: int nrLedsTail = NUM_LEDS_PER_STRIP / 4; and int nrLedsBrake = NUM_LEDS_PER_STRIP / 4; and change that 4 (the quarter) ... For the reverse you can change the pattern from the reverseLightModel variable and remember that the reverse lights are overriding every other light on the strip.
@chbetz5 жыл бұрын
@@IonutFedaceag great explanation! I missed it while reading the code, my bad. Thanks again for your help!
@IonutFedaceag5 жыл бұрын
Your welcome! ;)
@chbetz5 жыл бұрын
@@IonutFedaceag I have some other questions, since I'm trying to totally understand the schematics: 1-I checked your schematics in the compressed folder and found out you indicated one 1uF 10v capacitor for turn lights. Is that the right value to be used or was it just an indication? 2-Why is there another capacitor on your breadboard? So it looks like you are using 2 of them? 3-Using octocouplers instead of switches, are those 10k resistors still needed? I might have other questions later... sorry for bothering!
@IonutFedaceag5 жыл бұрын
1. 1uF 10v worked ok for the basic schematic, but for the final schematic something around that value, so it's just an indication. 2. That one i forgot, you don't need a capacitors on the reverse lights. 3. The 10k resistor it won't be needed if you are using the 4.7k from the optocoupler, but using them in parallel it will give you a resistance of almost 3.2 ohms, that's why i didn't bother in the schematic... Ask here and when i have the time, i will answer! ;)
@sealife56454 жыл бұрын
Please bring the code
@jcjanestardo17825 жыл бұрын
What kind or ws2812b youre using? Seem slim ang small
@IonutFedaceag5 жыл бұрын
This is the one that i'm using in v6.1 - WS2812B IP30 Non-waterproof with 144Leds/meter - amzn.to/2KfKmPg ... But you can get one of this two that are waterproof : WS2812B IP65 Waterproof (more like splash-proof) with 144Leds/meter - amzn.to/2yDxwnt WS2812B IP67 Waterproof (submersible) with 144Leds/meter - amzn.to/2KhApB1
@jcjanestardo17825 жыл бұрын
@@IonutFedaceag So nice.. Btw i made my father motor cycle.. And in front right led sometimes it flickers def color.. What the prob my data line? Or mybe the 470 ohms but the other side is ok.
@IonutFedaceag5 жыл бұрын
Most likely could be a data line problem. Try lowering the 470 Ohms to 220 ohms or even 100 ohms. If it's still flickering check the voltage at that led strip and see if it's stable. It could be also from electrical interference from the engine on the data line and that can be solved by shilding the data line wire.
@jcjanestardo17825 жыл бұрын
@@IonutFedaceag Ok boss ty.. Or in my solid wire? Cause of lacking of stranded wire i use the nternet cable wire almost 1/3 haha.. But the project was great.. Btw i want to put the knight rider lyts in tail lyt.. I always get error in programmingn it
@IonutFedaceag5 жыл бұрын
Actually is hard to tell until i see your connections and your modifications to the code.