Show Posts
Pages: [1] 2 3 ... 178
1  Community / Bar Sport / Re: Who hasn't accidentally touched a mains voltage once or twice? on: Today at 04:00:47 am
I have had a few mains shocks in my life and once a shock from a monitor tube (that one I do not want to repeat) but the worse ones for me are the pin prick burns from touching cold cathode inverters accidentally, they can take weeks to clear the deep burn marks.
2  Using Arduino / Displays / Re: Need help with display on: September 07, 2014, 10:40:50 am
Google finds this but it seems the guy never made it back home to redraw it. It seems a plausible drawing if the display is out of a 12 hour clock where the first digit is either blank or 1.
3  Using Arduino / Sensors / Re: What is the best color sensor? on: September 07, 2014, 01:35:36 am
Has anyone been able to get a color sensor to work?  What sensor did you use and could you share your code?  Thanks.
I have done nothing other than test it but I have one of these and used sample sketch to read it. Adafruit products are usually very well supported and they probably have demo code and tutorials on how to use the sensor you have (assuming it came from them).
// *** Connect OUT to pin 2 (Interrupt 0)

/*  S0 & S1 = Frequency scaling
     L , L = Power down
     L , H = 2%
     H , L = 20%
     H , H = 100%    */
const byte S0=3,S1=4;

/*  S2 & S3 = Photodiode type
     L , L = Red
     L , H = Blue
     H , L = Clear (no filter)
     H , H = Green   */
const int S2=5,S3=6;

const int sampleDelay = 100;

volatile unsigned int Counter = 0;

void setup() {
    // All control pins to output
//    // Set scaling to 2%
//    digitalWrite(S0,LOW);
//    digitalWrite(S1,HIGH);
    // Set scaling to 20%
    // Attach handler
    attachInterrupt(0, pin2InterruptHandler, CHANGE);

void pin2InterruptHandler()

void loop() {

    unsigned int Red = 0;
    unsigned int Green = 0;
    unsigned int Blue = 0;
    unsigned int Clear = 0;
    // Red filter
    Counter = 0;
    Red = Counter;
    // Green filter
    Counter = 0;
    Green = Counter;
    // Blue filter
    Counter = 0;
    Blue = Counter;
    // Clear filter
    Counter = 0;
    Clear = Counter;
    Serial.print("Red = ");
    Serial.print(", Green = ");
    Serial.print(", Blue = ");
    Serial.print(", Clear = ");
4  Community / Exhibition / Gallery / Re: LED Clock. NEOPIXEL used. on: September 07, 2014, 01:27:52 am
No, you got me wrong.

I wasn't telling you how to suck eggs, rather there was a trap which had me stuck for a while.
Sorry but you misread my reply, I was saying sorry if you feel like your sucking on an egg with me prattling on about mod etc. smiley-confuse

OK, so you make your hour hand have two LEDs either side.  What happens when the second hand or minute hand "overlap"?
The hour hand is 5 leds wide in total, the minutes hand is 3 leds and the seconds 1 led. The minutes overlap the hours and the seconds is mixed over both with cross fading between pixels as it moves.
I just realized I may have posted a newer test version than the one I'm describing. I will have to load it up and test when I'm next at home (5 days).

Today I am going to look for something to house the clock/ring to make it look nice.
Good luck with that, the code I posted was written on 2nd July 2014 and I still don't have a case.
5  Using Arduino / Installation & Troubleshooting / Re: Arduino Nano - vid pid on: September 06, 2014, 09:10:33 am
With program USBView i saw that my Arduino Nano has vid set to 0x067B and pid set to 0x2303. So i belive that why i cannot install this drivers..
According to searches vendor ID 0x067B belongs to a company called Prolific and product 0x2303 is a "USB 2 Serial Comm Port". Can you check your chips on the Nano to confirm this?
If it is Prolific then drivers are downloadable from here.
6  Using Arduino / Microcontrollers / Re: Does anyone have the files to run Arduino on an ATmega32M1? on: September 06, 2014, 06:47:46 am
Riva, thanks for the inquiry.  I've tried my own code, but something isn't quite right.  I cannot get an LED to blink! 
As the LED is not blinking that makes me think the core is not correct and either not setting system up correctly on power one or crashing/ locking up.
The site Crossroads linked to does not seem to have a core to support your 32M1 so maybe someone who knows how (not me BTW) will be able to change/write a core. Another option might be to use a different development environment to Arduino and port code/libraries to suit it.
7  Community / Exhibition / Gallery / Re: LED Clock. NEOPIXEL used. on: September 06, 2014, 06:08:11 am
I add the number of pixels in the chain (60) to all the values of hour, minute & second and use modulo to bring them into correct range for output after applying and maths needed.
For example the hour hand is 5 pixels wide (hour pixel plus 2 either side) and when it is at the top of the hour (pixel 0) the other pixels would be at -2, -1, +1 & +2 but adding pixel count first makes them  58, 59, 61 & 62 instead. now apply modulo 60 and the pixel numbers become 58, 59, 1 & 2 as is needed for the library. Sorry if you now feel like your sucking on an egg  smiley-mr-green
8  Community / Exhibition / Gallery / Re: LED Clock. NEOPIXEL used. on: September 06, 2014, 03:42:58 am
Same as me then with regard to pictures.

I'm at work all weekend so wont get a chance to test your code but have attached the code I'm currently working with. I use a different RTC to you though.
9  Using Arduino / Microcontrollers / Re: Does anyone have the files to run Arduino on an ATmega32M1? on: September 06, 2014, 03:15:42 am
Can you connect something like LED's and blink them or is the core locking up?
10  Community / Exhibition / Gallery / Re: LED Clock. NEOPIXEL used. on: September 06, 2014, 03:12:23 am
Yes I have also knocked up a clock using the 60 LED ring but need a frame to mount the ring in/on. I'm looking for a local person with a wood lathe or CNC mill/router to make one but it's not as easy as I thought it would be so am holding out hope for the Sandringham Country Fair next week as they tend to have artisans who do this sort of thing.

Do you have pictures?
11  Using Arduino / Sensors / Re: Connect USB device with sensor to Arduino UNO on: September 06, 2014, 03:05:17 am
As GM says USB will probably need custom drivers written for an Arduino host shield but you can get arduino compatible colour detectors like this though I'm not sure what accuracy they have and you need.
12  Using Arduino / Networking, Protocols, and Devices / Re: set comm protocol on Uno on: September 05, 2014, 10:25:32 am
I need to communicate with a device that uses 8 databits, 2 stopbits and "none" parity. Anything else won't work. Is it possible to set this protocol on Uno?
You can set 8N2 for the hardware serial (the same port used for USB serial) but the SoftwareSerial does not support and other protocols other than the default 8N1.
 Also, what is the default protocol for the Arduino boards? (Uno and MEGA2560 R3)
13  General Category / General Discussion / Re: Should there be rules for replying to newbies on: September 05, 2014, 01:44:16 am
If I jump into a pool of water, will I get wet?

Post a diagram
And links to where you bought the pool and it's instruction manuals.
14  Using Arduino / Networking, Protocols, and Devices / Re: Serial Between Arduino And Picaxe on: August 30, 2014, 03:08:27 am
I can alter the Picaxe code, yeah. But isn't "11" sent as one message though, so available() would return 2 and I can do something like this:
But if the arduino serial read code is in a fast loop it will only see and one at a time. It will read the first byte and think it's a "1" and then the other "1" would arrive, now is this 2x 1 presses or 11? Better to either use a 2 byte code for all keys so you know you need two bytes, use unique codes for each key (having 1 & 11 will confuse) or using a message terminator so you know when all the message has arrived.
15  Using Arduino / Networking, Protocols, and Devices / Re: Serial Between Arduino And Picaxe on: August 29, 2014, 11:06:03 am
I'm using a SoftwareSerial on a UNO board, and taking input from Pin 10. On key release, the Picaxe outputs I assume ASCII code for whatever key was pressed (serout ("1") and so on...) and 10/11 for star and hash.
Why 10/11 for * & # instead of just sending them as ASCII also? Do you have the ability to alter the picaxe code?
Pages: [1] 2 3 ... 178