Loading...
  Show Posts
Pages: 1 2 [3] 4 5 6
31  Using Arduino / Displays / Re: Newhaven Display NHD‐C0220BiZ New LCD driver library on: February 16, 2013, 08:13:59 pm
After a struggle i have managed to get this library working with a newhaven COG LCD NHD-C0216CiZ-FSW-FBW-3V3

http://www.newhavendisplay.com/specs/NHD-C0216CiZ-FSW-FBW-3V3.pdf
the only part i am now struggling with is the Contrast setting.
The specified command
lcd.setContrast(14);
seems to do nothing. Supposedly it has a range between 0-15 but there is no change.
I do not understand the implementation in the data sheet of the follower circuit as this seems to be tied to the follower settings.
Has anyone got any experience using this library successfully that may have an answer?

Thanks
32  Using Arduino / Displays / Re: using LCD numeric displays without controller on: January 06, 2013, 01:10:32 am
Thank you very much for the advice. It seems like it is much easier to stick with the units that have a driver. The reasson I was looking at changing is i am trying to save space from the Bulky 8x2 display I am using now. I dont really need a baclight and i could do what I need with just 3 1/2 characters. Does anyone know of a compact lcd without the big metal frame and backlight that has a driver chip on board?
33  Using Arduino / Displays / using LCD numeric displays without controller on: January 05, 2013, 07:37:17 pm
I have been trying to find a tutorial or discussion on using Numeric LCD displays that do not have a built-in controller. These are the 3.5 digit types that look like a Dip.
Is there a way to use these with Arduino or do you have to install a controller for it?
Sorry if this covered elsewhere.
34  Using Arduino / Project Guidance / Re: BLUETOOTH + IPHONE + ARDUINO on: January 01, 2013, 03:16:11 am
You can connect bluetooth to iphone with HID profile..
Here is a post and an app tonrecieve the data..
http://arduino.cc/forum/index.php/topic,136076.0.html
35  Using Arduino / Networking, Protocols, and Devices / Re: Arduino + Bluetooth JY-MCU on: January 01, 2013, 03:12:48 am
Iphone will not connect to this bluetooth device. You can however use a HID profile over bluetooth and it connects fine.
Here is a post about it
http://arduino.cc/forum/index.php/topic,136076.0.html
36  Development / Other Hardware Development / Re: Using Arduino DFU Serial on your own projects on: December 11, 2012, 10:10:36 pm
Thank you. a$2000 fee? thats not going to happen.
Thanks again
37  Development / Other Hardware Development / Using Arduino DFU Serial on your own projects on: December 10, 2012, 05:08:14 pm
I apologise if this is covered somewhere else. I produce a small device loosly based on the Uno and also uses Atmega 16U2 for USB Serial. I use Amel AVRISP II to upload UNO DfU firmware to the chip and of course it enumerates just like an UNO and the descriptor is Arduino UNI by Arduino.cc.
How can I change this to install as my own descriptor instead of Arduino? I dont really understand all the jargon in the readme file about PID and VID. Hoping someone can shed some Layman light on this.

Thanks
38  Development / Other Hardware Development / Re: Small-run PCB assembly on: December 10, 2012, 04:50:21 pm
I used PCBCart.com
They make PCB's and also have assembly plant. Very reasonable, under $2 for an Uno type SMD board excluding components. Even with components it was reasonable.
39  Community / Products and Services / Re: Send Arduino data to Iphone -HID - Magic MonitorX on: December 07, 2012, 09:33:06 pm
HI
You can purchase it with HID Pre-Loaded at Roving Networks
http://www.rovingnetworks.com/products/RN_42
The part number is actually RN-42 HID @ $16.95
You can also buy it already mounted on a breakout board with a level-shifter on-board for $39, part number RN-42-SM, but you have to specify to them that you want the HID Profile pre-loaded.

Thanks
40  Community / Products and Services / Send Arduino data to Iphone -HID - Magic MonitorX on: December 06, 2012, 08:08:52 pm
As everyone knows, Apple blocks most paths to get data into the iPhone from a MCU via Serial or bluetooth. After trying many apparent solutions I decided HID was a simple way to do it. A new App on the Appstore called Magic Montor X uses the HID profile to send data from your Arduino or any other RX/TX device to the iPhone. Basically HID emulates a keyboard so it reads the incoming data in ASCII format. HID bluetooth is portable so you're not stuck with Ethernet Shield. It is cheap, you can add a HID bluetooth module for about $17 or even cheaper if you know how to implement HID profiles.
You can send up to 7 different data messages to the iphone and each will appear in a different "Monitor" Window. There are also 6 LED's you can turn ON or OFF. All this data will update each loop of your sketch.
You can customise the display to show 1 to 6 Data windows and name the units for each window.
The simplest solution I found is using roving Networks RN-42 and simply connecting it to RX/TX. It pairs seamlessly with iPhone and then you can just serial.Print data to the phone.

Control characters are used to get the correct data to the intended data window.
It is wireless and so much better than an LCD display.
Any questions, let me know
https://itunes.apple.com/us/app/magic-monitorx/id583180732?mt=8
41  Using Arduino / Programming Questions / Re: How to remain inside a function? on: October 11, 2012, 10:53:39 am
Right, that is why it worked ok in the UNO because it was mostly absolute. It is used only once from Reset so the 0-4 Seconds was just that, minus a small startup time. It doesnt work very well in leonardo because of the way the Serial port works so I am trying to find another way to test the Max and Min.
42  Using Arduino / Programming Questions / Re: How to remain inside a function? on: October 11, 2012, 10:36:13 am
But isn't that what the next 2 IF statements do? Test in the 0-4 seconds for the max value and test in 4-8 seconds for the min value?
43  Using Arduino / Programming Questions / Re: How to remain inside a function? on: October 11, 2012, 09:50:36 am
Hi Paul
Yes this was indeed just a dummy to show the branch requirement, that is why it did not matter about the variable, I just assigned it to a fixed value to see the result of branching without having to use the analog input for decision.
The reason I never need to get back to the main loop is that the application is a sensor that has 2 different data sets depending on the initial startup condition. So if the sensor value is X at startup the program should go to Branch 1 and if it is Y then it should go to Branch 2. Once in a particular branch, there is a calibration routine. For the first 4 seconds I read the sensors max value (with full load) and in the next 4 seconds I read its MIN value (with no load). Once it is calibrated, the sensor is used to make measurements until such time it is turned off, so i never need to get back to the main loop.
I have to find another way to do the calibration step. Below is what I was using which worked fine on the UNO, I guess I will have to use a few FOR loops?

Code:
static int sampleLow = 1024;
static int sampleHigh = 0;

  while (millis() < 8000UL)
 
  {
    if (millis() <4000) {
    lcd.setCursor(0, 0);
    lcd.print("Measure");
    lcd.setCursor(0, 1);
    lcd.print("High");
     Serial.println("Measuring High");
    }
    if (millis() >4000) {
    lcd.setCursor(0, 0);
    lcd.print(" Remove ");
    lcd.setCursor(0, 1);
    lcd.print(" Load");
    Serial.println(" Remove Load");
    delay (200);
  }
   
       
    // MEASURE
    int sensorVal = analogRead(A0);

    // MATH
      sampleLow = min(sampleLow, sensorVal);
      sampleHigh = max(sampleHigh, sensorVal);
}
44  Using Arduino / Programming Questions / Re: How to remain inside a function? on: October 10, 2012, 11:52:40 pm
Ok I think I found my problem. I have a while (millis() < 80000) statement in each of my branch functions  as usually this is the time for the initial calibration of my sensor. I measure the minimum and maximum value of my sensor in this time. Obviously by the time the serial connection is made with the Leonardo the millis is already counting down.
I will have to find another way to delay the calibration feature. This sensor has no buttons or switches that i can use as it just operates when you plug in the USB.
45  Using Arduino / Programming Questions / Re: How to remain inside a function? on: October 10, 2012, 11:36:43 pm
Thank you for the replies. Using the While statement works well. The actual issue i am having is with Arduino Leonardo. My original code runs without problems on the UNO, because the Uno resets when you connect to USB and that allows my sketch to do the analogRead and make the decision between the 2 loops. However the Leonardo does not reset. So I have been trying to troubleshoot it and wanted to make sure of the structure to use function calls.
I have followed the getting started guide for Leonardo and it says I can use the  while (!Serial) ;
statement to do nothing until a serial connection is made. This works when I structure it like the below but somehow when I apply it to my original code, the program just continues to execute even if the Serial Monitor is closed. This means i miss the calibration step in the beginning analogRead.
Sorry, I know it is confusing.
Code:
int i = 1;
//==========================================================================================================//
void setup()
{
  Serial.begin(9600);
  while (!Serial) ;
   }
//================================================================================================//
// Decision between option1 & option2
void loop()

   if (i == 1){
           Serial.println("Option 1"); 
   option1();
 
     } 
 
   else if (i = 2){
          Serial.println("Option 2");
     option2();

    }
  Serial.println("Why?");
}
//===============================================================================================================================================//
void option1()
{
 while (i==1){     
  for (int i=0; i <= 3; i++){
     
      Serial.println(i);
      delay(200);
        }}
}

//============================================================================================//
void option2()
{
      for (int i=10; i <= 13; i++){
   
      Serial.println(i);
      delay(200);
        }
}
Pages: 1 2 [3] 4 5 6