Show Posts
Pages: [1] 2 3 ... 26
1  Using Arduino / Programming Questions / Re: 4D systems LCD display reporting integers to Arduino on: March 04, 2014, 11:14:23 pm
Hi Gustermaximus,

Lots of things wrong in your code... to put it simply

genieSetup(9600); //Make sure this is the same baud rate of the LCD and the genieBegin command.

Gee that is going back a bit... why do you have that?

You then have this:

genieBegin (GENIE_SERIAL, 9600);  //Serial1

comment is wrong, but other than that its correct. Does the same thing as the genieSetup above, but the genieSetup was from the very initial version of the library. Are you copying code from various places, or did you find that in the library?
You then have this

//genieAttachEventHandler(myGenieEventHandler);

Why is that commented out? You are not telling the genieArduino library which function it is to call when an event comes in, so nothing in your  void myGenieEventHandler(void) function is going to happen...

Your myGenieEventHandler has some weird things going on in there too...

//Read from sensor every 100ms and write to the display
  if (millis() >= waitPeriod)
  {

Why is all of that code in your myGenieEventHandler function?
Is that just a copy paste issue or is that your actual code?
Looks like you are missing a bracket after that... and if not, then you are calling your events to be unloaded only once every 100ms which is not going to work well...

You also have this, just sitting out in the open, not inside some filtering if statments:
leddigits2_val = genieGetEventData(&Event);

Think you need to pause for a moment and read your code and think about what you are trying to do. The things mentioned above are going to stop most of what you want to achieve from working. After that however, the code in your handler needs some serious changes. Some serious errors/issues going on in there.

Have another go and post again, happy to help but have a think yourself too...

Regards
WanaGo
2  Using Arduino / Programming Questions / Re: 4D systems LCD display reporting integers to Arduino on: February 18, 2014, 08:35:59 pm
Well in this case, its just the variable that is being set in the Event Handler function

if ( leddigits_val > sensor1)
{
      digitalWrite(outputPin, HIGH);
}

If you look in the event handler, you will see this:
leddigits_val = genieGetEventData(&Event);

This is just saying, get the Data from the particular event which you have filtered out, and put the value into leddigits_val, or whatever variable you want.
3  Using Arduino / Programming Questions / Re: 4D systems LCD display reporting integers to Arduino on: February 17, 2014, 08:57:17 pm
Best idea is to post on their forum, might get faster support and people who are familiar with the technology helping.

That said...

You need to do the following in your loop() at whatever interval or conditions you want (dont do it every loop).

Code:
genieReadObject(GENIE_OBJ_LED_DIGITS, 2); // Trigger a manual read to leddigits2

You then need to set up your event handler to catch these Reported Objects (genieReadObject), as they don't return immediately in the same line of code, they come in via the event handler and get captured that way.

for example:

Code:
void myGenieEventHandler(void)
{
  genieFrame Event;
  genieDequeueEvent(&Event);

  //If the cmd received is from a Reported Object, which occurs if a Read Object is requested in the main code, reply processed here.
  if(Event.reportObject.cmd == GENIE_REPORT_OBJ)
  {
    if (Event.reportObject.object == GENIE_OBJ_LED_DIGITS)                // If the Reported Message was from leddigits
    {
      if (Event.reportObject.index == 2)                              // If Leddigits2
      {
        leddigits_val = genieGetEventData(&Event);  // Receive the event data from the Leddigits2
      }
    }
  }
}

Just to give you an idea.

This is actually present in the demo they provide with the library...

Hope that helps
4  Using Arduino / Networking, Protocols, and Devices / Re: 4D systems display adapter and an Arduino Ethernet shield on: February 12, 2014, 03:50:03 pm
Right, so you are doing genieWriteObjects every single loop.
Kinda a bit excessive really. Chuck it in a delayed if statement like you find in the 'blink without delay' example that comes with the Arduino, and only send to the display every 50ms or 100ms or something, and you might find you can run at a lower baud rate.

Really don't see the point in trying to update the display every loop, you wont get any benefit but have issues such as you are seeing now no doubt.

Updating the data 10 times a second should be plenty, even that may be excessive.
5  Using Arduino / Networking, Protocols, and Devices / Re: 4D systems display adapter and an Arduino Ethernet shield on: February 12, 2014, 02:49:40 pm
Glad you got it working.

Comes down to your code then and how often you are updating the screen it seems. If you run at a slow baud rate, then the arduino may be doing too much work to try and process the Ethernet side of things and update the display, as updating the display takes so long at 9600 baud.

If you want to post your code then we may be able to help figure out why that is.
6  Using Arduino / Networking, Protocols, and Devices / Re: 4D systems display adapter and an Arduino Ethernet shield on: February 11, 2014, 04:34:34 pm
I cant see any problems either with what you have posted, other than the display reset pin.
If you remove the reset code for the display, does it start to work?

If it does, then you could remove the J1 jumper and run a jumper wire from the centre pin of J1, to one of your GPIO which is not used by anything else, and change your reset code to suit. Or move the J1 jumper to the PR side, and then run a jumper wire from the RES pin of the "4D PROG CABLE/ADAPTOR" H2 Header, if you aren't using that, to a free GPIO, and change the reset code to suit. Both have the same effect, just which way is more suitable for you is for you to determine.

It could also be power related. How are you powering the system? When you start up the Ethernet Shield it may start drawing more power, I am not sure. I don't have one. You might need to change J2 to the PR side, and use your 4D Programming Cable/Adaptor on the "4D PROG CABLE/ADAPTOR" H2 Header, so the display is powered off a separate USB. Assuming you are USB powering this whole thing, rather than off the barrel jack of the Arduino.

Hope that helps
7  Using Arduino / Project Guidance / Re: 4D systems ViSi-Genie uLCD-32PTU-AR screen displaying DHT22 temperature data on: February 04, 2014, 04:53:57 pm
Made you a simple demo.

2 zips, 1 Arduino code, the other ViSi-Genie code which you load into the display using Workshop4.

http://www.taktik.co.nz/Arduino/TempDemo_ArduinoGenie.zip
http://www.taktik.co.nz/Arduino/TempDemo.zip

I assume you know how to program the display using WS4.
Requires a microSD card in the display.



Get the 4D Systems library for Arduino and ViSi-Genie from Github if you don't have it already:
https://github.com/4dsystems/ViSi-Genie-Arduino-Library

Hope that helps
WanaGo
8  Using Arduino / Project Guidance / Re: 4D systems ViSi-Genie uLCD-32PTU-AR screen displaying DHT22 temperature data on: February 04, 2014, 04:12:01 pm
The sainsmart LCD and a 4D Systems display are quite a different animal.

If all you want to do is for the Arduino to tell the display to display text, then the solution is very simple. It however depends what you want to do. Do you want to only program the Arduino and the display is just a slave which you dont load an application on itself, or do you want to be able to program both and do more complex graphics to display your data.

If you simply want to display "TEMP 100" etc, then you may be best to use Serial, not ViSi-Genie.
However it is also easily done with ViSi-Genie, but you just need to program the base program into the display, set up the objects you want to animate with data etc, and then send the data in the appropriate format using the library they provide.

Do you want the data to just be text on the screen, or do you want it like 7 segment displays, or do you want it like a gauge, or a graph or what... lots of options, all very easy.

What examples are you referring to which are only half explained? Maybe I can help.

Have you looked at the App Notes they provide?

You are using the uLCD-32PTU right, in the -AR pack (Arduino pack)?
Do you have the Arduino Adaptor with lots of headers/jumpers on it (Version 2) or do you have the more simple Version 1 Arduino Adaptor shield?

I can create you an example if you want.
9  Products / Arduino Due / Re: DUE & uLCD43PT-AR on: February 04, 2014, 02:21:11 am
Old post, but providing an answer for people looking.

4D Systems displays are powered off 5V, but are 3.3V logic but are 5V logic tolerant. So you have no issue talking to them from Uno, Due, Chipkit, Galileo, etc. No level shifters required.

Documented in the datasheets of the display modules in question FWIW

Regards
WanaGo
10  Using Arduino / Displays / Re: 4D Systems uLCD-144-G2 with Arduino UNO on: February 04, 2014, 02:16:07 am
The uLCD-144-G2 is a Serial display, which talks over a Serial UART, not SPI and not I2C.

I am unsure what TFT.h library is, but it most certainly is not a library made by 4D Systems.

Looking at your screenshots you have the display with SPE (Serial Platform Emulator) loaded, which is the default configuration when shipped. You talk to the uLCD-144-G2 using the Serial Protocol, and use the Serial Library which they provide.

If you havent already, look at the App Notes they provide. One good one is this:
http://www.4dsystems.com.au/downloads/Application-Notes/4D-AN-G5005_Serial_Connecting_a_4D_Display_to_an_Arduino_Host_Using_a_Library_R_1_00.zip

Which is specific for Arduino, SPE and a Goldelox Display, which you have.
More found here: http://www.4dsystems.com.au/appnotes/

And the library can be downloaded from Github if you dont have it by now, which is mentioned in the App Note: https://github.com/4dsystems/Goldelox-Serial-Arduino-Library

Also have a look at their product page for the product: http://www.4dsystems.com.au/product/1/4/4D_Intelligent_Display_Modules/uLCD_144_G2/

And additional doco is available from their IDE's product page: http://www.4dsystems.com.au/product/10/120/Development/4D_Workshop_4_IDE/

Hope that helps
WanaGo
11  Using Arduino / Installation & Troubleshooting / Re: Solved! - avrdude: stk500_getsync(): not in sync: resp=0x00 on: February 03, 2014, 11:42:44 pm
As you discovered you cant have it connected when you are writing to the Arduino, as they will both try to reply to the programming signals, and cause all sorts of mayhem and the programming will therefore fail.

Its just the fact of the matter that the uOLED-128-G1 has a single serial port, and so does the Uno, so you must disconnect them in order to program either of them.

I take it you have looked at their website to find this type of information? I know I have personally read it on a number of the App Notes they provide, related to the Arduino.

Regards
WanaGo
12  Using Arduino / Project Guidance / Re: 4D systems ViSi-Genie uLCD-32PTU-AR screen displaying DHT22 temperature data on: February 03, 2014, 10:34:56 pm
Its pretty easy really...

Have you had a look at the 4D Systems forum, and the area for Arduino?
There are quite a few examples in there where people have asked questions and examples have been provided promptly.
Also have you looked at the App Notes they provide? There are ones specific to the Arduino talking to ViSi-Genie.

http://www.4dsystems.com.au/appnotes/

Check out 4D-AN-P4017 , 4D-AN-P4018, and 4D-AN-P4019 for a start...

Then wonder over here and have a look. Couple of really good examples for people getting started in there:
http://4d.websitetoolbox.com/?forum=272259

WanaGo
13  Using Arduino / Displays / Re: 4d systems display - do I need the USB to serial interface? on: February 03, 2014, 10:26:15 pm
You cant use the FTDI cables as they do not break out the DTR which is used for reset on the 4D products, but you could use the FTDI basic board as it does break out the DTR line. you would need to do the series cap etc stuff yourself externally though, so its easier just to buy the correct programmer.

4D provide warnings about using anything other than what they supply not so you have to buy their programmers, but so you don't brick the processor. Yes, it can happen, and yes it will void your warranty, as they warn about in their datasheets.

They sell both the SK (Starter Kits) and the displays by themselves or in an Arduino (-AR) kit for a reason. If you already have a programming cable then you dont need to purchase another one, so you just buy the display or the Arduino kit etc. If you dont have anything, then it makes sense to buy the SK which includes everything you need.

Its all written in their datasheets.

WanaGo
14  Using Arduino / Project Guidance / Re: Regulation project of temperature on: February 03, 2014, 10:14:47 pm
Hi Tirstan

I take it you didn't try the 4D Systems website...?

http://www.4dsystems.com.au/product/1/11/4D_Intelligent_Display_Modules/uLCD_43/

STEP models available for download from there.

I dont think a STEP model is available for the Arduino Adaptor, however you could request it either from the Support Page on their website, or from their support forum.

Regards
WanaGo
15  Community / Exhibition / Gallery / Re: Modular Stackable Microcontroller System (lots of pics) on: February 26, 2013, 12:35:42 am
Quote
EY MAN!!! A GOOD OPTION IS THE EURO CARD CONECTOR AND THE EURO RACK.  CHECK IT

Gee talk about digging this up from the dead

Wow alot has happened since this....

ah the memories... smiley
Pages: [1] 2 3 ... 26