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.
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 ?
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.
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:
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] = ' '; }
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.
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.
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.
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.
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 }
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?
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.