Recent Posts

Pages: 1 ... 5 6 7 [8] 9 10
71
TCB Dev / Re: Ideas for the OP Config
« Last post by LukeZ on May 27, 2023, 10:37:10 AM »
The idea here is that we would "flicker" the lights (an English word a little differing than flashing or blinking), during the time that the engine is starting. On old tanks (and even old cars) the current draw from the engine starter motor would reduce the battery voltage so that headlights would look dim until the engine started and the alternator began creating current. That is the effect we are trying to create here.
72
TCB Dev / Re: Ideas for the OP Config
« Last post by NS-21 on May 26, 2023, 04:24:42 PM »
To be honest, I still can not understand the sacred meaning of these changes.

More precisely, I can’t understand what their functionality is, in application, in the construction (revival) of models.

That's what I really get - this is, for example, the functionality of flashing beacons for ships, for police cars, or just cars, so that when turning left, for example, the turn signal turns on automatically - turning left, for example.
73
TCB Dev / Re: Ideas for the OP Config
« Last post by LukeZ on May 26, 2023, 03:54:02 PM »
Well I'm glad we are making progress!

To answer your question, we don't need to have full off, but that line of code could result in a full off. The random(100) means it will choose a value between 0 and 100, so it was possible that it could choose 0 (off). However the code I posted this afternoon wouldn't go to full off, but you're right, it would possibly go to full brightness.

You can try the attached version, here is the code that I am using this time. For the "dimmer" setting you can see we won't go below 50. For the "brighter" setting I took your suggestion and we won't go above 225:

Code: [Select]
    if (flickerState) analogWrite(pin_Brakelights, random(70)+50);    // Dimmer   - random value between 50 and 120
    else              analogWrite(pin_Brakelights, random(45)+180);   // Brighter - random value between 180 and 225

If you get tired of all the back and forth you could also try compiling the code in the Arduino IDE yourself, and then you could change it as much as you want until you find the perfect settings. But I'm also happy to keep making adjustments this way.
74
TCB Dev / Re: Ideas for the OP Config
« Last post by Rongyos on May 26, 2023, 02:12:06 PM »
I think I will need to buy an Arduino and LED to do some testing at home.

You dont need to if I am here :)
Very, very close. I think we can meet the goal if the max flickering dim is below the max dim (255)

Something like this:

Code: [Select]
  // Here we vary the light between some lower and higher dim levels, it can go full off or full on, but also something in-between
                if (flickerState) analogWrite(pin_Brakelights, random(100));      // Dimmer   - random value between 0 (off) and 100 (not even half brightness)
                else              analogWrite(pin_Brakelights, [u]random(45)[/u]+180);   // Brighter - random value between 180 and 255 (full on)

I dont understand the first row. Why do we need 0 (full off) state?

Here is the video. IRL its mutch better and looks like drop voltage flickering but It will be better with lower max value :)


Thanks
ROngyos
75
TCB Dev / Re: Ideas for the OP Config
« Last post by LukeZ on May 26, 2023, 11:00:12 AM »
I see what you mean about it being a bit harsh. I can't quite use the faderate code as written, but I've tried to soften it some more in the attached.

I think I will need to buy an Arduino and LED to do some testing at home. I've been using an online emulator but it really doesn't provide an accurate representation of what the LED will look like. 
76
Show and Tell / Re: 3d print T34
« Last post by NS-21 on May 25, 2023, 02:42:33 PM »
if i had a bigger printer i would do that one
https://www.3dprintedtanks.com/is1en/

Greetings, dear!

I have been jealous of your tank and print quality for a very long time, and what can I say?

I'm doing KV-1! Scaled 1:10.

I have a printer with a large print area, and I am printing a project (more precisely, it is already printed by 60%) from this respected author:

https://www.printables.com/model/219806-tank-kv-1-rc-model-110

This is an incredible model!

P.S. I will also find an opportunity to buy from https://www.3dprintedtanks.com/ - the T-34 tank!
Unfortunately, there are still difficulties in paying, but I will overcome this difficulty as well.
And I'm also looking forward to when he makes a model of the IS-2 tank!
77
TCB Dev / Re: Ideas for the OP Config
« Last post by Rongyos on May 25, 2023, 02:20:22 PM »
let's see if the effect looks good on the brake output first, because it will be the same effect on the Aux output.

Hi Luke,

Thanks for your support :) I think "we are almost there". The flickering works in the brake light but I think it only needs a "faderate", because now it changes the dim very fast.
IDK if this helps but I found a code from somewhere with fadein fadeout (it might be useless but trying to "help"):

Code: [Select]
  int brightness = random(256);

  // Fade in
  for (int fadeValue = 0; fadeValue <= brightness; fadeValue += 5) {
    analogWrite(ledPin, fadeValue);
    delay(10);
  }

  // Fade out
  for (int fadeValue = brightness; fadeValue >= 0; fadeValue -= 5) {
    analogWrite(ledPin, fadeValue);
    delay(10);
  }


Rongyos
78
I'm afraid I don't have a suggestion, the fact is I am not too experienced with sound circuits even though I designed one. Hopefully someone else will have a suggestion. I think this is definitely an application where it helps to have the components on a board and a DIY one with lots of wires will certainly be susceptible to interference.
79
TCB Dev / Re: Ideas for the OP Config
« Last post by LukeZ on May 25, 2023, 10:07:35 AM »
Hi Rongyos, thanks once again for doing this test. I apologize I'm not able to work out these bugs on my end, I only have a couple TCB boards left to me and they are in a storage box on the other side of the world!

I think I know what was wrong with the brake light effect. I've made a new firmware, this time I'm just attaching it to this message and will wait to update the official one until we have all the problems worked out. Can you test once again with the brakelight and let me know how it looks?

As for the headlight pin, no, unfortunately, that is what I was saying earlier, it is not PWM compatible. It can only be turned on or off, and I agree with you, that effect does not look very good...

It should be possible to flicker the Aux output but let's see if the effect looks good on the brake output first, because it will be the same effect on the Aux output.

80
Hi Everybody!

Can you recommend a cheap RFI/EMI filter for my homebuilt sound card? In lower volumes I hear annoying buzz or high pitch noise and if I put my tx closer to the device a buzz going crazy. Maybe I need shielded cable for the speaker? Can I make it better with shielded cable?

Thanks
Rongyos
Pages: 1 ... 5 6 7 [8] 9 10
bomber-explosion