HardwareArduino

 

Press Ctrl+Enter to quickly submit your post
Quick Reply  
 
 
  
 From:  Chris (CHRISSS)  
 To:  ANT_THOMAS      
40898.281 In reply to 40898.280 
Cool. Lots of wires there :D

I kind of worked out PWM frequencies without using that library. I tried settings the bits of the two registers myself but worked out something wrong, not sure what. Found a website with a list of values to use and set them.

Then I just use analogWrite with the correct bits set and I have a PWM frequency of 3921Hz. It'll be half that if I used an 8MHz device in the atual install though.

And it looks like I can actually get all the pins I want to work correctly.

Me
0/0
 Reply   Quote More 

 From:  ANT_THOMAS   
 To:  Chris (CHRISSS)     
40898.282 In reply to 40898.281 
Have you got the RGB strips working with the arduino now?
0/0
 Reply   Quote More 

 From:  Chris (CHRISSS)  
 To:  ANT_THOMAS      
40898.283 In reply to 40898.282 
Not yet. I've only tested the small strip with it so far. Need to hack the IR signal too so I can turn it on and off and change colours. And tonight I tested the PWM frequency with a single LED.

Me
0/0
 Reply   Quote More 

 From:  Chris (CHRISSS)  
 To:  ANT_THOMAS      
40898.284 In reply to 40898.282 
And how's your world coming along? Are you going to do a variable hole size drilled wooden panel like the page you linked to before?

Me
0/0
 Reply   Quote More 

 From:  Chris (CHRISSS)  
 To:  ALL
40898.285 
Brown and red look too similar on resistors.

Me
0/0
 Reply   Quote More 

 From:  ANT_THOMAS   
 To:  Chris (CHRISSS)     
40898.286 In reply to 40898.284 
Still need to wait for a few bits to arrive: protoboard, screw connectors, dip sockets. The code is pretty much done. Comes in at around 20K, so there's room for some extra stuff if want. Though I imagine it'll mainly be on world time setting or all on.

The plan is to basically copy the map I linked with the variable sized holes and use MDF, though the UK isn't very obvious so I might tweak the design. Not bought the MDF yet though.
0/0
 Reply   Quote More 

 From:  ANT_THOMAS   
 To:  Chris (CHRISSS)     
40898.287 In reply to 40898.284 
Just remembered I attempted to add an IR receiver to do the same as the button but it didn't seem to consistently receive the correct code from the remote I was messing with.
0/0
 Reply   Quote More 

 From:  Chris (CHRISSS)  
 To:  ANT_THOMAS      
40898.288 In reply to 40898.286 
I have a protoboard that came with my Saintmart. Not used it yet. Are the dip sockets for the shift registers?

I kind of feel like I should have some advice for the MDF as I use lots but I can't think of anything right now. Don't breathe it in.

Me
0/0
 Reply   Quote More 

 From:  Chris (CHRISSS)  
 To:  ALL
40898.289 
Different PWM frequencies. 31Hz, 122Hz, 490Hz, and 31kHz.

Me

Attachments:

0/0
 Reply   Quote More 

 From:  Chris (CHRISSS)  
 To:  ALL
40898.290 
Got most of the functionality working with my LED controller now. Still testing on a breadboard with R, G and B LEDs. And now an IR phototransistor. I can change colours, fade up and down, and that's about it for now.

Ant: not got any problems with picking up the IR codes from the remote.

I think I'll plug in my small test strip to see how it works with that. Then to hack the control box (good thing I have a spare from when I bought another remote) and get it all working properly.

Me
0/0
 Reply   Quote More 

 From:  Chris (CHRISSS)  
 To:  ALL
40898.291 
And here it is working. I might sort it out it saves the current colour to the EEPROM so that it restores it when the power comes on. Or just make it so the lights are off if the power comes back on.

The ones we have now turn back on when the power goes out, even if it was off. Which is silly. If there's a power cut while we're out the lights will turn back on when it comes back.

Red and green frequency is 31kHz, blue is 62kHz.


Me
0/0
 Reply   Quote More 

 From:  ANT_THOMAS   
 To:  Chris (CHRISSS)     
40898.292 In reply to 40898.291 
That's pretty cool. I think I might buy an RGB LED strip to play with. I still like the idea of making some sort of ambilight thing for my TV. I think originally I thought it would be a bit too difficult but after messing with arduinos more I should be able to do it.

Today and yesterday have mainly been spent trying to replace the wheel bearings on my car.

0/0
 Reply   Quote More 

 From:  Chris (CHRISSS)  
 To:  ANT_THOMAS      
40898.293 In reply to 40898.292 
I'm pretty happy with how it's working out. Just set it up so it's working with one of my pro minis so I can put it in a small box in the wardrobe to power it. Got the power button working now too, forgot about that one.

I am very impressed with the Arduino. I thought I'd be playing around with the Pi far more. Surprisingly easy to get some complex things working.

Have you fixed your bearings?

Me
0/0
 Reply   Quote More 

 From:  Chris (CHRISSS)  
 To:  ALL
40898.294 
The almost completed project. Just need to make the connections to the Arduino more permanent.

First pic is the oroginal controller.
Then controller with the ICs removed and a couple of cables attached.
Third one is all the wires needed for the Arduino. 5V, ground, RGB and the IR signal.
And fourth is it all wired up. Plug in the 12V transformer and it works :D

Me

Attachments:

0/0
 Reply   Quote More 

 From:  Chris (CHRISSS)  
 To:  Chris (CHRISSS)     
40898.295 In reply to 40898.294 
And one of the path the traces make for the MOSFETs. Took me a while to work out how they were connected up. Strangely there is no resistor on the red connection.

Me

Attachments:

0/0
 Reply   Quote More 

 From:  Chris (CHRISSS)  
 To:  ALL
40898.296 
And I now have it in the bedroom working. And was it worth it? Definitely. No flickering at all now. Much nicer light.

My colour algorithm needs tweaking though as the colours change a bit when the brightness is changed. White changes to a very greeny colour.

Me
0/0
 Reply   Quote More 

 From:  ANT_THOMAS   
 To:  Chris (CHRISSS)     
40898.297 In reply to 40898.293 
Not yet. Ended up down the scrap yard buying parts.

What were the controllers on the original control box?
0/0
 Reply   Quote More 

 From:  Chris (CHRISSS)  
 To:  ANT_THOMAS      
40898.298 In reply to 40898.297 
If you mean the ICs I removed one was some Atmel chip and I assume the other (no markings on it) was the EEPROM.

Actually not so sure about that. I guessed it was that based on another site but the FET gate pins are connected to it.

Me
0/0
 Reply   Quote More 

 From:  ANT_THOMAS   
 To:  Chris (CHRISSS)     
40898.299 In reply to 40898.293 
Operation wheel bearings has entered day 3.

The chip could be an AT Tiny, I wonder if it could be reprogrammed with better software.
0/0
 Reply   Quote More 

 From:  Chris (CHRISSS)  
 To:  ANT_THOMAS      
40898.300 In reply to 40898.299 
Problems doing the bearings or needed parts? Are they easy to remove?

I'm pretty sure it was an ATTiny chip but can't remember which and I can't see from the pictures on my phone. I think part of the problem is it only has 2 PWM channels. I assume that other chip is a shift register or something similar.

Should be easy enough to repgoram it by connecting up the correct pins and using a programmer. Can the opposite be done? Read what's on there and reverse engineer it?

Me
0/0
 Reply   Quote More 

Reply to All  
 

1–20  …  241–260  261–280  281–300  301–320  …  541–542

Rate my interest:

Adjust text size : Smaller 10 Larger

Beehive Forum 1.5.2 |  FAQ |  Docs |  Support |  Donate! ©2002 - 2024 Project Beehive Forum

Forum Stats