Show Posts
Pages: 1 ... 7 8 [9] 10
121  Using Arduino / Programming Questions / Re: car wash with arduino mega on: August 10, 2011, 12:23:18 am
so...without posting any of your existing code, workflow, thought process, what you want to control, use to control, etc...you want us to write your entire program for you...am I correct?  Good luck on that.

PS: Also you might want to use google translate, as a lot of your post doesn't make sense.

PPS:  you really think  one Arduino can power an entire car wash? 
122  Using Arduino / Programming Questions / Re: ONE BUTTON TWO FUNCTIONS ? LED HELP!! on: August 10, 2011, 12:04:06 am
why not look at using an on/off ic? used normally for power, but you might be able to factor it in
http://www.newark.com/digital-power
123  Using Arduino / Programming Questions / How to set a define statement at runtime via input pins? on: August 04, 2011, 12:10:17 pm
I'm working on a project to drive Sure 3216 Displays, and need to be able to, if possible, define the number of displays used at run time.  Currently I have the following statement in my code that helps define settings used in the code before both setup() and loop() are called.

Code:
#define Number_of_Displays 1

I want to add a 2 position SMD dip switch to the board that can be connected to two pins on an ATMEGA to help define number of displays connected at run time.  The way I wanted the switches to work is as follows:

Quote
00 = 1 display
01 = 2 displays
10 = 3 displays
11 = 4 displays

Since the #define is at the beginning of the code, is there anyway to have that # dependent on the switch configuration?

I'm thinking of having the following in the setup() routine, or at the beginning of loop():

Code:
if (digitalRead(7) == LOW  && digitalRead(8) == LOW) { 
  Number_of_Displays = 1
}

else if (digitalRead(7) == LOW  && digitalRead(8) == HIGH) { 
  Number_of_Displays = 2
}

else if (digitalRead(7) == HIGH  && digitalRead(8) == LOW) { 
  Number_of_Displays = 3
}

else if (digitalRead(7) == HIGH  && digitalRead(8) == HIGH) { 
  Number_of_Displays = 4
}


is this possible

124  Using Arduino / Project Guidance / Re: Sure Electronics 32x16 RG LED Matrix Not Working on: July 17, 2011, 02:35:20 pm
I gave it a go anyway using the code as is and wired it up as follows:

data = arduino pin 7
cs = arduino pin 5
clk = arduino pin 4
wrclk = arduino pin 6

So the constructor call remained the same:

ht1632c ledMatrix = ht1632c(PORTD, 7, 6, 4, 5, GEOM_32x16, 2);

The result? Still a big fat nothing.

Your problem is that you did not read the directions.  If you had, you'd know that the  pins are mapped by PORT, not literally to the chip.  For example, you said you're using 4,5,6 and 7.  unless you're using a larger chip, like a 2560, you don't really have a Port D, since it's tied up in the TX&RX pins.  If you are using an UNO, for the pins you have wired up, you're line should be something like this:


Code:
ht1632c dotmatrix = ht1632c(PORTB, 2, 3, 5, 4, GEOM_32x16, 2);

This corresponds to digital pins 10-13,  see mapping here:http://www.arduino.cc/en/Hacking/PinMapping168

In the link you can see PB1,PB2,PB3, etc.  I personally have my displays connected to PB2, PB3, PB4, and PB5  this translates to

DATA=PB2=Digital Pin 10=Physical Pin 16
WR=PB3=Digital Pin 11=Physical Pin 17
CLK=PB5=Digital Pin 13=Physical Pin 19
CS=PB4=Digital Pin 12=Physical Pin 18

Hopefully this makes sense to you.  Just remember that the pins are by Port, not literal or by digital when it comes to the code in the link I used.  Other examples and sketches do things differently.

Edit:  fixed, as ATmega168/328 have a Port D, although it's tied up in the TX and RX pair.
125  Using Arduino / Project Guidance / Re: Sure Electronics 32x16 RG LED Matrix Not Working on: July 16, 2011, 07:57:00 pm
Try this one: http://code.google.com/p/ht1632c/  As it is working on my displays.  Can you post pictures of your displays connector as it is connected to your board, along with your code once you try it?
126  Using Arduino / Project Guidance / Re: Sure Electronics 32x16 RG LED Matrix Not Working on: July 15, 2011, 06:26:08 pm
the 1.37A is a recommendation for maximum.  Under normal use, I draw around 400-600ma from 3 displays.  The usb can more than power tihs setup.  Look in the LED displays section, the github code there works just fine, as I'm running it on my setup.
127  Development / Suggestions for the Arduino Project / Re: Standard Hardware file format on: July 12, 2011, 10:44:46 pm
Please use Gerber files, and stop using specialty file formats created in a non-standard design application,
That most designers dont use.

BRD files are useless.

!!! TROLL ALERT !!!

Dude are you serious?  Go troll somewhere else.  Eagle is not useless, many designers use it, Newark.com recommends/sells it, and it is an excellent tool.  Instead of complaining about the BRDs that are supplied to help people see the layouts, why don't you learn how to make the gerbers from eagle brd files?  it takes 2 seconds...literally.
128  Using Arduino / LEDs and Multiplexing / Re: Sure Electronics new 32x16 bi-color display: 3216 RG -Cont. from read only forum on: July 12, 2011, 03:27:52 pm
I've tried hooking up a 3208 display, but it doesn't seem to work yet.  I changed the GEOM to 32x8, used a 5x7 font, but nothing shows on the display when i upload the code.


GEOM_32x8 is defined code is not ready yet: 3208 uses HT1632C but CS isn't managed thru a shift register... _chipselect() routine need to be adapted/rewritten (I think it's enough to )... moreover I need to understand if HT1632C initialization and memory addressing is the same for 32x16 displays (COMS00).

arduino->display
2->7
3->5
4->6(READ Clock according to 3208 data sheet)
5->3(CS1, I flipped CS1 switch on board)

4->6 no, leave NC

Moreover you could try this scratch code (it might work only for one 3208 since only one CS is managed) instead original _chipselect() defined in ht1632c.h:

Code:
void _chipselect(register byte cs)
{
  if (cs == HT1632_CS_ALL) {
    _cs_clr();
  } else if (cs == HT1632_CS_NONE) {
    _cs_set();
  } else {
    _cs_clr();
  }
}

...and another major change to be applied on ht1632.cpp:

Code:
ht1632c::ht1632c(const byte geometry, const byte number)
{
  if (geometry == GEOM_32x16)
  {
    bicolor = true;
    x_max = (32 * number) - 1;
    y_max = 15;
    cs_max = 4 * number;
    framesize = 32 * cs_max;
  }
  if (geometry == GEOM_32x8)
  {
    bicolor = true;
    x_max = (32 * number) - 1;
    y_max = 7;
    cs_max = 1 * number;
    framesize = 8 * cs_max;
  }
  framebuffer = (byte*) malloc(framesize);
  setfont(FONT_5x7W);
  x_cur = 0;
  y_cur = 0;

  _data_out();
  _wr_out();
  _clk_out();
  _cs_out();
  setup();
}

Sorry, I haven't displays other then 3216 to try...


That works, partially.   But only 2 of the 4 LED matrix's show text.  It's as if it starts half way through the display and moves left.

I'd be happy to mail you one of my 3208's if you want to play with one to improve the code.
129  Using Arduino / LEDs and Multiplexing / Re: Sure Electronics new 32x16 bi-color display: 3216 RG -Cont. from read only forum on: July 11, 2011, 07:06:59 pm
lonewolf...PM me your address and I'll send you a second Green 3208 display if you want to work on it.  I was reading the TODO and noticed 3208 support wasn't crossed off yet smiley
130  Using Arduino / LEDs and Multiplexing / Re: Sure Electronics new 32x16 bi-color display: 3216 RG -Cont. from read only forum on: July 11, 2011, 02:30:09 pm
I've tried hooking up a 3208 display, but it doesn't seem to work yet.  I changed the GEOM to 32x8, used a 5x7 font, but nothing shows on the display when i upload the code.

Code:
ht1632c dotmatrix = ht1632c(PORTB, 2, 3, 4, 5, GEOM_32x8, 1);
using and arudino UNO, have the following mappings

arduino->display
2->7
3->5
4->6(READ Clock according to 3208 data sheet)
5->3(CS1, I flipped CS1 switch on board)

Anyone have any ideas?
131  Using Arduino / Networking, Protocols, and Devices / Is it possible to use the WT11/12 Arduino BT as a HID reciever? on: June 22, 2011, 10:00:37 pm
I've been trying to find out if it's possible to use the BT Arduino (or arduino with a bluegiga bluetooth module) as an HID receiver...like a usb dongle for the pc.   I'm trying to work on a project that will allow the arduino to be paired with a bluetooth keyboard, and then send the text over the serial line to the processor.

So far, I've found threads and links for how to make the arduino INTO a bluetooth keyboard, but I can't find anything on how to use the HID profile of the module to act as a receiver for a BT keyboard.. is this possible?

What I'm ultimately thinking is that the keyboard pairs to the WT12/arduino, the WT12 feeds the bytes received out to the UART in the processor, the processor runs code to display the received keys.  I know how to set it up as a SPP profile, so i suppose i could create an android app or something to send text over SPP to the module, but I'm trying to figure out how to use a keyboard.   If my phone can connect to a keyboard, the arduino should be able to as well...right?
132  Using Arduino / Programming Questions / Re: Receive text over Serial and display after enter key is detected? on: June 16, 2011, 08:41:13 pm
Code:
const int bufferSize = 128;
char inputBuffer[bufferSize];
int bufferPointer = 0;
void loop()
    {
    char inByte;

    if (Serial.available())
        {
        inByte = Serial.read();

        if (inByte == '\n')
            {
            // 'newline' character
            inputBuffer[bufferPointer++] = '\0';
            scrolltextsizexcolor(0,inputBuffer,2,GREEN, 0,my2font,8,8,'G',0);
            bufferPointer = 0;
            }
        else
            {
            // not a 'newline' character
            if (bufferPointer < bufferSize - 1)  // Leave room for a null terminator
                inputBuffer[bufferPointer++] = inChar;               
            }
     }

John Thanks for the input.. I had to change "inChar" at the end to "inByte", and add a "}" at the end but it works.   Where do I send the beer? smiley
133  Using Arduino / LEDs and Multiplexing / Re: Sure Electronics new 32x16 bi-color display: 3216 RG -Cont. from read only forum on: June 16, 2011, 05:55:56 pm
Where are you getting them from?  the only place I could find was Sureelectronics themselves, but nowhere else.  I was contemplating making my own LED board instead of tying multiples together from them. (128x32)

I'm in Brazil so I contacted holtek directly from their website and they send me a Brazilian representative contact. I contact them and they ordered for me. They give me an ETA of 30 days, so I'm waiting.

I recommend you to contact them directly on http://www.holtek.com/english/contact/contactus.htm

Thanks.   out of curiosity, what did they quote you, and what volume did you do?  I'll try contacting their US rep.
134  Using Arduino / LEDs and Multiplexing / Re: Sure Electronics new 32x16 bi-color display: 3216 RG -Cont. from read only forum on: June 16, 2011, 04:20:37 pm
I'm just waiting for my HT1632C's arrive to start working with my displays. Unfortunately I burned two HT1632C IC's, and have no idea of what happen. Maybe some voltage spike or as I stored my displays on a plastic box, static electricity killed them.

Where are you getting them from?  the only place I could find was Sureelectronics themselves, but nowhere else.  I was contemplating making my own LED board instead of tying multiples together from them. (128x32)
135  Using Arduino / LEDs and Multiplexing / Re: Sure Electronics new 32x16 bi-color display: 3216 RG -Cont. from read only forum on: June 16, 2011, 04:01:06 pm
Guys,

will the new library thats on google that lonelywolf and others have worked on work for 3208 displays too?  I was planning on getting two 32x08 displays to tie together to use for electronic name signs at my job.  I already know a few things would need to be modified, namely:

Code:
#define CHIP_MAX (4*Number_of_Displays) //Four HT1632Cs on one board
#define X_MAX (32*Number_of_Displays -1)
#define Y_MAX 15

would need to be changed to 1*Num_of_displays  and Y_MAX would need to = 8, but other than that the library should work, yes?

Thanks.
Pages: 1 ... 7 8 [9] 10