Loading...
  Show Posts
Pages: 1 ... 5 6 [7] 8
91  Using Arduino / Displays / Re: 4dsystems serial OLED display using Newsoftserial? on: November 09, 2011, 01:39:06 pm
Thanks for the code. Grabbed the latest newsoftserial ,replaced the old and had the random rectangles on the screen. No possibility of adding a transistor to the power pin of the display on my project so I tried removing and then editing display.powerUp(); so the display would be always connected to 5V but have not had luck yet. It probably a timing thing.

Thanks,
Mike
92  Using Arduino / Displays / Re: 4dsystems serial OLED display using Newsoftserial? on: November 08, 2011, 08:07:48 am
Do you have any of your code available that I could build off of?
93  Using Arduino / Displays / Re: 4dsystems serial OLED display using Newsoftserial? on: November 07, 2011, 12:40:34 pm
I have not installed Arduino 1.0 yet. Just waiting until all the bugs are worked out. Was it difficult converting your old code over to use the newsoftserial ?
94  Using Arduino / Displays / 4dsystems serial OLED display using Newsoftserial? on: November 07, 2011, 11:39:23 am
I was just wondering if anyone has a 4dsystems oled display working with the newsoftserial yet? Rightnow the only only way I can use the display and still program the arduino is to use the Mega because of the multiple serial ports.

Mike
95  Using Arduino / Programming Questions / Re: removing leading zero from an LCD on: October 07, 2011, 10:43:45 am
You are correct. That probably would have made things a bit easier if I did that in my first post. Here is the working code now with my itoa conversion:

 while(menu_item_location <10)
     {
      tmpred_data = read_encoder();
      tmpred_value = tmpred_value + tmpred_data;
      itoa(tmpred_value, red_value, 10);
     
      if(tmpred_value < 100) //chops off leading zero
      {
       red_value[2] = red_value[1];
       red_value[1] = red_value[0];
       red_value[0] = ' ';
      }
     
      if(tmpred_value < 10) //chops off leading zero
      {
       red_value[2] = red_value[1];
       red_value[1] = ' ';
      }
     
      uoled.TextGraphic(110,60,SMALL_FONT,0x3666,1,1,  red_value,1);

I tried inserting spaces where ever I could but nothing changed.

Mike
96  Using Arduino / Programming Questions / Re: removing leading zero from an LCD on: October 07, 2011, 10:00:13 am
Inserting spaces did not fix my problem. Like most of my programming it now works by accident. I have no idea yet why it this works, but it does:

  if(tmpred_value < 100) //chops off leading zero
      {
       red_value[2] = red_value[1];
       red_value[1] = red_value[0];
       red_value[0] = ' ';
      }
     
      if(tmpred_value < 10) //chops off leading zero
      {
       red_value[2] = red_value[1];  //was 1, 0
       red_value[1] = ' ';                 //was 0
      }

Thanks for the help,
Mike
97  Using Arduino / Programming Questions / Re: removing leading zero from an LCD on: October 07, 2011, 07:17:07 am
Thanks for the help PaulS, I understand how you explained removing the zero for the less then 10 code that was working fine. I modified the code to remove the zero below 100 and it works but now messes up the remove zero below 10. A video of what I have now is here:


The code is:

 if(tmpred_value < 100) //chops off leading zero
      {
       red_value[2] = red_value[1];
       red_value[1] = red_value[0];
       red_value[0] = ' ';
      }
     
   if(tmpred_value < 10) //chops off leading zero
      {
       red_value[1] = red_value[0];
       red_value[0] = ' ';
      }
98  Using Arduino / Programming Questions / removing leading zero from an LCD on: October 06, 2011, 10:27:40 am

I have cobbled together but do not fully understand code to remove the leading zero from and LCD. Right now this works for removing the leading zero:

      if(temp_value < 10)
      {
       display_value[1] = display_value[0];
       display_value[0] = ' ';
      }

If someone could explain how this works and if it the best way to go about doing it this way it would be great. After that I would like to remove the leading zero if the counter goes below 100 and then below 10. Right now I have no idea.

Thanks,
Mike
99  Using Arduino / Installation & Troubleshooting / serial OLED on Mni Pro serial port on: September 07, 2011, 10:13:47 am
I have a 4dsystems serial oled display on the RX & TX lines of the mini pro connected to the sparkfun USB programming board. When I program the mini and leave it attached the display will not light. When I unplug the USB board the display works fine. I'm guessing its because the USB board and oled board are both using the one serial port. I put two 1K resistors on the RX & TX lines of the oled display but still nothing until I unplug the programming board.

Any easy fixes besides a sotfware serial option?

Thanks,
MIke
100  Using Arduino / Project Guidance / Re: 30 I/O needed for a project. Mega the way to go? on: July 04, 2011, 08:59:39 am
The project is a 50 pin cable tester. Right now I have 7 74HC164 shift registers and 7 74HC151 multiplexers. One I/O is used fore the switch, 6 for the lcd and 20 to control the logic chips.

Is there anything in between the UNO and the Mega for digital I/O? Possibly a clone or something? It would be a shame to have to use a Mega 1280 for the project. One possibility is to grab a blank Mega 1280 board and just solder on the Mega and crystal.
101  Using Arduino / Project Guidance / 30 I/O needed for a project. Mega the way to go? on: July 04, 2011, 08:46:11 am
I am at the final stage of a prototype that needs 30 I/O pins in total. So far I have the project prototyped using a Mega 1280 but I am looking for a more permanent, less expensive option. Sort of like a pro mini board that has no USB circuitry, just a board that has a mega1280, crystal, FTDI connectors and solder pins for each I/O.

Not sure if something like this exists so I would check with everyone here.

Thanks,
Mike
102  Using Arduino / Programming Questions / Re: easy for loop question on: June 14, 2011, 09:41:21 am
Ahh.

Thanks AWOL!
103  Using Arduino / Programming Questions / easy for loop question on: June 14, 2011, 09:32:19 am
My C programming skills are pretty bad but I'll ask this question anyway. The code below has been simplified for this question. How can each spin of the for loop check each function below?

 for (i=0; i<8; i++)
 {
  clock();             //clocks 8 times 
  set_up_pini();   //want to check each below  but get an error here
}
 
void set_up_pin1()
{
 digitalWrite(Select_A, LOW);
 digitalWrite(Select_B, LOW);
 digitalWrite(Select_C, LOW);
}

void set_up_pin2()
{
 digitalWrite(Select_A, HIGH);
 digitalWrite(Select_B, LOW);
 digitalWrite(Select_C, LOW);
}
 
...
104  Using Arduino / General Electronics / Number of I/O pins on the mini Pro? on: June 10, 2011, 08:20:20 am
I need as many I/O pins on the Arduiuno Mini Pro as possible. The info for this Arduino says it only has 14 Digital I/O but looking at the schemtic I see that PC0- PC5 = 6 , PD0-PD7 = 8 and PB0-PB6 = 6 I/O. This adds up to be 20 I/O. One of these has an LED on it and two are for the Rx/Tx for programming. Why does the doc say on 14 are available?
105  Using Arduino / Project Guidance / measuring and displaying -12db on an lcd on: May 29, 2011, 07:43:49 pm
I have a large piece of test equipment that is only being used to test the audio section of a circuit board by injecting a -10db, 1Khz signal into the input and expecting to see -12db on the output. If the output is -12db then the circuit passes the test.
Is there a way to design a circuit using the arduino so I can automate this test? the -10db on the input should be eaily do-able. It's measuring the -12db output that I have no idea on how to tackle.

Mike 
Pages: 1 ... 5 6 [7] 8