sb
Part of things
Posts: 725
|
|
Jan 12, 2017 11:48:49 GMT
|
MORE lights! So I picked up 2 Adafruit 8x8 LED arrays. I mostly just wanted to play about and see what made it tick. I learnt an important lesson though, these run on I2C communication. So where you have 8 positive connections and 8 negative (1 per row and column) you only need 4 wires for the controller. Power, ground, data and clock. This means you can string a bunch together with only the 4 connections on the original controller. Which also means you can use an ATTINY85. As seen in the top right on the below image. This means very small boards to control everything. Of course there is less memory but you can still get a decent amount on it. So back onto Adafruit (seriously please give me sponsorship) and I found they sell an HT16K33 breakout board. This is the chip that drives the array from the I2C. But instead of using a prebuilt array you can solder in any LEDs in an 8x16 array. Cue a lot of soldering... So its kind of hard to see but the below image shows ho I separated the +ve and -ve terminals The -ve are soldered to the board giving 8 -ve (the HT16K33 has 16 +ve pins and 8 -ve pins), the +ve terminals I laid a stripped wire on top and soldered to each lead. On the end I soldered on the cut off LED legs to provide an easy way to attached a jumper cable. Sorry my phone couldnt find focus. Now I have 128 LEDs for dumb ideas... Like displaying helpful messages to other drivers... Also as per the 8x8 arrays I can connect multiple of these together for a total of over 1000 LEDs
|
|
Last Edit: Jan 12, 2017 11:52:04 GMT by sb
|
|
|
|
|
|
Jan 12, 2017 13:27:25 GMT
|
wow! Agreed. Nice.
|
|
|
|
|
|
Jan 12, 2017 17:06:11 GMT
|
I love the subtle message at the end LOL
|
|
|
|
sb
Part of things
Posts: 725
|
|
Jan 13, 2017 18:10:06 GMT
|
wow! wow! Agreed. Nice. Cheers both! I love the subtle message at the end LOL Aha yeah its just a general comment I wish I could share with most drivers...
|
|
|
|
remmoc
Part of things
Posts: 931
|
|
Jan 13, 2017 18:46:41 GMT
|
I have absolutely no idea what your on about re. (the HT16K33 has 16 +ve pins and 8 -ve pins) or any of the other technical stuff but it all looks VERY impressive i must say . I rewind armatures , stators and electric motors by hand for work but this is way over my head . Your very clever in a mindboggling kind of way
|
|
|
|
BT
Posted a lot
Posts: 1,772
|
|
Jan 13, 2017 18:47:46 GMT
|
I never thought I would ever laugh out loud at an indicator. You proved me wrong.
Nice.
|
|
|
|
mattiwagon
Part of things
Just got a work truck
Posts: 445
|
|
|
Awesome awesome awesome. Can you make me some for my T25!😁
|
|
If they cant be nice f**k em!
84 low t25 panel 1.9td beige and rust combo 97 Goped Bigfoot G260RC with clutch conversion 97 Impreza turbo 2000 builders wagon 76k sold 04 Fabia vRs 50mpg pocket rocket 04 battered T5 pickup in blue! Chainsaws lotsa Chainsaws
|
|
|
|
Jan 14, 2017 17:38:35 GMT
|
LOL!! I need one of those!
|
|
|
|
sb
Part of things
Posts: 725
|
|
Jan 16, 2017 15:24:03 GMT
|
I never thought I would ever laugh out loud at an indicator. You proved me wrong. Nice. Awesome awesome awesome. Can you make me some for my T25!😁 LOL!! I need one of those! Thank you all for the comments! I have absolutely no idea what your on about re. (the HT16K33 has 16 +ve pins and 8 -ve pins) or any of the other technical stuff but it all looks VERY impressive i must say . I rewind armatures , stators and electric motors by hand for work but this is way over my head . Your very clever in a mindboggling kind of way OK so you didnt actually ask me to explain... but I'm going to because I find it interesting lol! So first things first LED arrays are wired as such: If its not clear what its showing is all the positive legs are wired vertically together and all the negatives are horizontal. This means if you put a positive (+ve) connection on a vertical line and a ground/negative (-ve) connection on a horizontal one LED, the cross-section, would light. 0 1 2 3 4 0 O O O O O 1 O O O O O 2 O O O O O 3 O O O O O 4 O O O O O
Where 'O' is an LED in the OFF state. The numbers would be the pin reference, simply vertical line 0, vertical line 1, etc. Always start at 0.
2.2v + 0 1 2 3 4 0 O O O O O 1 O O O O O 2 O O O O O 0v-3 O O X O O 4 O O O O O
Where 'O' is an LED in the OFF state. 'X' is an LED in the ON state.
2.2v + + + 0 1 2 3 4 0 O O O O O 1 O O O O O 2 O O O O O 0v-3 O X X X O 4 O O O O O
2.2v + + + 0 1 2 3 4 0 O O O O O -1 O X X X O 0v-2 O X X X O -3 O X X X O 4 O O O O O
So you could do this by hand, manually and physically plugging in and unplugging each axis. But thats boring, and I'm lazy. I use an Arduino as my controller. Its basically one chip (ATMEGA) that does a very simple thing. Turn things on and off. So you have a number of pins that can either read in coming signals or send outgoing signals. It has a limited inbound voltage and a fixed digital (on/off) outbound voltage, however it can do some pulse width modulation (PWM) to imitate anlogue signal. Long story short if I plugged the array into the arduino I would have to use 24 pins, wiping out every available pin so you now have a very useful controller that can only turn some lights on and off. In steps the H16K33! don't ask me what the letters and numbers mean, Ive no idea. But what it does do is provide 16 positive pins and 8 negative. So rather than manually connecting each row and column, or using every available pin on the Arduino, they are now all plugged into one chip. This chip will turn the rows and columns on and off for you. But how do you tell it which ones? First step, physical communication. You need wires. The Hblahblahblah... chip uses I2C, its a serial communication (I'm acting like I know these things, in reality I googled some stuff and am now regurgitating it). It needs power and ground, then data (the information youre sending) and clock (makes sure both devices are aligned and sets the data speed to ensure nothing is lost). This is perfect because its four leads (possibly 2 because you would run power and ground off of whatever the Arduino was using). If you connect more I2C items they use no more pins, they simply run parallel off the ones youve already plugged in. All the data travels down the same line and it magically finds the right device to talk to (sidenote: not magic (you tell it), but might as well be). Now your Arduino has legs free for logic. So I could say if you see 12v come in on pin0 turn the indicate function on. If you see voltage on pin1 turn the sidelight on, if you see pin2 turn on brakes, etc. Moving data from the Arduino to the chip is the modern age computer voodoo bit. Ultimately its fairly simple code made even more simple by the lovely people at Adafruit (SERIOUSLY GIVE ME FREE THINGS PLEASE). They made a lovely package with useful tools that draw pixels, lines, hollow boxes, full boxes, circles and text. You tell it what shape or word you want, tell it where to start with the co-ordinates and where to finish (or how large it is in some cases). Then its good to go. It will either cycle through set actions or as said above will wait for logic in to turn on certain functions. I hope this explains at least something? I know you didnt ask me to! But if you would like to know more do ask.
|
|
|
|
|
remmoc
Part of things
Posts: 931
|
|
Jan 16, 2017 16:28:19 GMT
|
That actually makes some sense in my fuddled bonce - thanks for the explanation
|
|
Last Edit: Jan 16, 2017 16:28:36 GMT by remmoc
|
|
|
|
Jan 16, 2017 18:33:32 GMT
|
Just read the whole thing - your truck is great! Keep it up - it's brilliant. I don't understand anything you've written about the electrics, but my idea of electrics is Red to Red, Green to Green, Blue to Bits.
|
|
|
|
sb
Part of things
Posts: 725
|
|
|
Nothing too exciting has been happening on the truck truth is I didnt touch it for like 4 months over winter and was trying to force myself back into it so got on with finishing the sill cap. Issue the first, the end of the sill had twisted and just didnt look good. The shut line on the door was completely off and it didnt line up with the wing well: But violence solves all. So out with the lump hammer. That got it closer, took an age to beat it back straight. Which of course pushed it back up, so lump it down, beat it straight, repeat and repeat until eventually it had twisted down maybe 10mm. Now its a fairly even gap for the whole door line and it meets the wings far better. I then made the reduced section for the wing to bolt on/over. In hindsight I wish I had cut this off the sill but Ill remember it for next time. As it is this piece is OK but nowhere near what it could be. That is now welded in, just need to finish it and then weld on the end cap and finally after months that sill is done. Then the great job of turning the truck round to do the other side.
|
|
|
|
sb
Part of things
Posts: 725
|
|
|
Just read the whole thing - your truck is great! Keep it up - it's brilliant. I don't understand anything you've written about the electrics, but my idea of electrics is Red to Red, Green to Green, Blue to Bits. Thank you very much, honestly my knowledge is much the same. if there's positive and negative it must work right?! But I muddle on!
|
|
|
|
|
|
|
Good to see things progressing.
|
|
|
|
b3nson
Part of things
Posts: 886
Club RR Member Number: 22
|
1969 Datsun 521 Pick-upb3nson
@b3nson
Club Retro Rides Member 22
|
|
Ah the Datsun/RX7 thread of glory. Will be following from now on to see how this progresses!
|
|
'99 Fiat Coupe 20V Turbo '08 Panda 100HP
|
|
sb
Part of things
Posts: 725
|
|
Aug 22, 2017 14:40:07 GMT
|
Ah the Datsun/RX7 thread of glory. Will be following from now on to see how this progresses! Cheers man, was nice to meet you. RX7 goodness lives here if you want to read that!
|
|
|
|
sb
Part of things
Posts: 725
|
|
Aug 26, 2017 10:28:17 GMT
|
It has been a long time since I've posted anything significant. Unfortunately I really lost any drive to carry on, I was hoping the Rex would be a quicker fix than its turning out to be, but I ended up with two projects still unfinished and not running. I decided that the only thing to do was dive into again, because as soon as you start doing something it’s easy to continue. I didn’t want to touch the sill, it’s been a pain in my for so long that I hate looking at it. This is the cab reinforcement, it runs from the sill to floor to keep everything straight. Unfortunately due to the terrible design of the floor dirt gets stuck between the top of this reinforcement and the bottom of the floor. As you can see this rusts everything in the area and it why the sills are rotten. This is what I cut out of the area showing the state it gets in. I assume the hole was designed to drain the trapped dirt but it clearly didn’t achieve this! Good old bit of CAD. Fresh metal folded up and test fit. Then time to pick up the MIG for the first time in a while, probably should’ve practiced first or prepped in any way. Instead I jumped straight in. Some of it is far too proud but honestly considering I hadn’t done this in anger for about 6 months I was happy with the results. But as always I'm more of a grinder than a welder. The main issue I had was the backside, probably would’ve helped if I had spent more than 5 seconds prepping the metal. I need to think of a new design for the floor. I won’t put the lump back in and cause another dirt cavity but I do need to consider some drainage as the new plate is now 1-2mm below the floor line so it will create an issue. I then manned up and went back to the sills to tidy up the horrible welds. Unfortunately welding upside down is just not something I'm capable of doing well. Tacked on the end cap. Unfortunately when I tried to make it a more permanent fixture the truck refused. I finally had a chance to use this… …When I set my kneeling towel on fire.
|
|
Last Edit: Aug 26, 2017 10:43:49 GMT by sb
|
|
sb
Part of things
Posts: 725
|
|
Aug 26, 2017 10:42:21 GMT
|
|
|
Last Edit: Aug 26, 2017 10:43:20 GMT by sb
|
|
|
|
Oct 15, 2017 13:55:38 GMT
|
GR8 work by mother on upholstering!
|
|
|
|
|