Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: Bastiaan

Page 1 of 3 1 2 3

Search: Search took 0.00 seconds.

  1. Why can’t the function double Thermocouples1_4()...

    Why can’t the function double Thermocouples1_4()
    {
    Return Array_thermocuple;
    }
    Be something like this? Why is the function a pointer if handling doubles?
    Double *Thermocouples1_4()
    {}

    Those...
  2. Ok I値l declare as a Static global pointer. ...

    Ok I値l declare as a Static global pointer.

    Thanks Mark T
  3. Ok Good Point:) sure I値l change that for...

    Ok Good Point:)

    sure I値l change that for sure:)

    i had to laugh about this.

    :) thanks Kurt I値l clean it up

    Best regards
  4. I want to write closed functions that are of void...

    I want to write closed functions that are of void type.

    https://forum.pjrc.com/threads/63249-rewriting-the-functions-to-closed-void-functions?highlight=max31855

    Maybe this link explains it...
  5. Second question: what would be the best...

    Second question:

    what would be the best approach in using no delay with millis.
    On the TFT screen ?

    i have in total 4 if statements with no delay millis, i don’t know what is the best...
  6. Ok Good hint! Thanks Kurt E, I am not getting...

    Ok Good hint! Thanks Kurt E,

    I am not getting the doubles from a void pointer function to a TFTscreen(p);
    how can I show values inside the function TFTScreen() and Serial.print it.?


    That...
  7. So i have create the void loop like this: and...

    So i have create the void loop like this:

    and I am wondering why i am not getting values from my thermocouple function.




    void loop()
    {
    double *p=0;
  8. Hi Kurt E, so it got stuck at the...

    Hi Kurt E,

    so it got stuck at the thermocouple1_4() function, the calls to the class MAX31855 required some settling time.
    so I applied millis if statement in between the for loop that calls the...
  9. Elsewise Zero

    Hi Defragster,
    Good morning,

    Ok I値l try that, Elsewise it would be Zero I think.

    Best regards

    Bastiaan
  10. solved: #include void...

    solved:



    #include <stdio.h>


    void *passArray()
    {
    static double ArrTemp[] = { 22.33, 22.74, 22.30, 24.00 };
  11. rewriting the functions to closed void functions

    Hi fellow engineers,

    i had a hunch and wanted to test something:

    could someone tell me why i am not getting the values from my function in the other function?
    the debugging from my code will...
  12. Write Paul Stoffregen for the library or Kurt E ...

    Write Paul Stoffregen for the library or Kurt E

    They can explain the Intension behind it.

    Best regards

    Bastiaan
  13. Hi codepoet, i am not that good in programming...

    Hi codepoet,

    i am not that good in programming and this kind of c++ Style
    So bare with me.

    So technically it’s an encoder program that only should work if the encoder is turned or moved nd...
  14. Understand. It’s just ackward. at the...

    Understand. It’s just ackward.

    at the beginning during the start up(Without thermocouple function)

    The tft screen just shows All the data from the internalADC and the first Line of Menu 1:
    If...
  15. the screen freezes the Serial monitor prints out...

    the screen freezes
    the Serial monitor prints out where I am with my encoder push button, and also shows that I am in the TFT function.

    in the tft menucountdown() i have the following code:

    ...
  16. I also tried: because I discovered that the MISO...

    I also tried: because I discovered that the MISO Line for the MAX31855 is not a Data Command line.
    all connections are checked 4.7K on the CS pins from VCC to CS for the max31855 and TFT featherwing...
  17. Hi Defragster: I did the following: ...

    Hi Defragster:

    I did the following:

    https://forum.pjrc.com/threads/63152-More-questions-SPI-Manual-Correctly-Previous-Post-MAX31855-Screen-Freezes-why-CLK

    continued testing at the advice of...
  18. This post is a duplicate of ::...

    This post is a duplicate of :: pjrc.com/threads/63190-pins-for-the-teensy3-6-and-teensy4-0-1-Data-Command-alternatives

    Hello engineers,

    could someone tell me which alternative pins can be used...
  19. pins for the teensy3.6 and teensy4.0/1 Data Command alternatives

    Hello engineers,

    could someone tell me which alternative pins can be used for the Data/Command lines?

    I tried in my previous MAX31855 post pin 9 and pin 10, swapped them and the display still...
  20. Hi Kurt, so I changed in the Init all pins to...

    Hi Kurt,

    so I changed in the Init all pins to active HIGH before executing the start programs for the thermocouples and TFT screen. then removed all the digitalWrites to low and high in the Void...
  21. Hi Kurt, Thanks for your elaborate answer! I...

    Hi Kurt,

    Thanks for your elaborate answer! I feel stupid.

    I had a gut feeling in the beginning looking over the Code, still neglected it and made an assumption.
    At the thermocouple1_4 that...
  22. What I did was test the two programs Separately...

    What I did was test the two programs Separately in the void loop by commenting the first one out and the other in, and visa versa.

    If this turns out not to be the problem, where do I look next?...
  23. So technically the graphic primitives, only...

    So technically the graphic primitives, only require a pull up from CS to VCC and that’s it.
    No digitalwrite of the CS pins, whatsoever. I’ll remove it and see what happens.

    I’ll leave to it that...
  24. More questions SPI Manual Correctly Previous Post MAX31855, Screen Freezes why? CLK?

    Hi fellow engineers

    good morning,

    I am one step further, after a hint from the Maxim Integrated guys. The MAX31855 needs to be set to SPI_MODE 0.
    The PDF_TOTAL is the total schematic how it is...
  25. Hi MarkT, I got rid of the previous code and...

    Hi MarkT,

    I got rid of the previous code and tryouts and resorted to global variables, ( i know.... )

    so I am stuck at the beginning of the code:


    Libraries that I use:
  26. Thanks for the reply. I’ll keep it in notice...

    Thanks for the reply. I’ll keep it in notice about the arrays and pointers.
    I lost touch to programming a long time a go, but i am picking it up on its interesting puzzle :)

    Have nice weekend!
  27. Thanks Mark for shorting the code. I still...

    Thanks Mark for shorting the code.

    I still have one question left.

    In the for loop I have:

    For(int i=0;i<4;i++)
    {

    SPI.BeginTransaction(MAX31855);
  28. Replies
    2
    Views
    153

    problem solved: changed the #defines to: ...

    problem solved:
    changed the #defines to:

    //SPI defines
    #define MAXCLK 13 //max31855 nothing else.
    #define MAXDO 9
    #define TFT_DC 10
    #define TFT_CS 8
    #define TFT_RST -1
    #define AD7124_CS 8
  29. Replies
    2
    Views
    153

    so by comparing the GraphicsTest for the...

    so by comparing the GraphicsTest for the HX8357_t3n.h,
    that the TFT that it is working.
    i got from the Serial monitor the following output based on the code below:



    uint8_t x =...
  30. Replies
    2
    Views
    153

    void loop and interfacing the SPI

    hello guys,girls,

    I would like to interface with the SPI bus, and I am not good in timing. i have currently 4 max31855 and they all work together at 5MHz. thats good.

    so i started to copy the...
  31. I came across the following problem. If in...

    I came across the following problem.


    If in the void loop the program HX8357(); is run and the thermocouple1_4(); after that,

    I only see the Initialization of the SPI for the HX8357.
    If I...
  32. You mean chip selects from the max31855 are...

    You mean chip selects from the max31855 are active low?
    So readout commences the moment CS is pulled LOW. ->ok.
    I have to set all of them to active HIGH in the beginning.
  33. I would like to do this also for the Void Setup()...

    I would like to do this also for the Void Setup() part:

    the pins 14,15,16,17 are the CS Pins for each of the MAX31855.


    SPI.begin();
    Serial.begin(9600);

    for(int i=0; i<4;i++)
    {
  34. Hi MarkT, I tried what you said: ...

    Hi MarkT,

    I tried what you said:



    Adafruit_MAX31855 TH1(MAXCLK, 14, MAXDO);
    Adafruit_MAX31855 TH2(MAXCLK, 15, MAXDO);
    Adafruit_MAX31855 TH3(MAXCLK, 16, MAXDO);
    Adafruit_MAX31855...
  35. Hi MarkT, I tried what you said: ...

    Hi MarkT,

    I tried what you said:


    Adafruit_MAX31855 TH1(MAXCLK, 14, MAXDO);
    Adafruit_MAX31855 TH2(MAXCLK, 15, MAXDO);
    Adafruit_MAX31855 TH3(MAXCLK, 16, MAXDO);
    Adafruit_MAX31855 TH4(MAXCLK,...
  36. Many thanks!

    Many thanks!
  37. Fotos from measurement

    Measurement
  38. max31855 question calibration not seeing it.

    Dear Guys/Girls,

    Currently I am working with 4 Thermocouple sensors MAX31855 and I am using
    https://blog.heypete.com/wp-content/uploads/2016/09/MAX31855-Linearized-Thermocouple-Temperature.pdf...
  39. Replies
    0
    Views
    126

    Shield around Teensy3.2

    Dear guys/girls,


    question came to mind, after seeing this:
    https://www.pjrc.com/panel-mount-free-standing-brackets/

    wouldnt it even be better to get shielding around the pins? like...
  40. The barometric pressure example looks similar to...

    The barometric pressure example looks similar to what I want to do. At least this will be clearer see what Is happening
  41. ok thanks:) i was probably confused by the...

    ok thanks:)

    i was probably confused by the SPI_write();
    i wont ask why and accept it that I should write:

    SPI.transfer(reg);
    SPI.transfer(data);

    has to do with the SPI.transfer function it...
  42. unraveling the AD7124 and RTD function and paste it to an array.

    would it be wise to look at the CN0391.cpp 196 - 220 and AD7124.cpp?

    and go here step by step because everything is listed. the RTD configuration is listed, and I would like to hardcode this into...
  43. Somehow re running the program doesnt work. i...

    Somehow re running the program doesnt work.
    i get on the output 0x05 in hex FF binary 11111111, 255.
    I re changed the DATA to 0x3f this does not work.

    I tried resetting it with 0x14.... hmmm I...
  44. So I am writing to the register 0x05 hence 000101...

    So I am writing to the register 0x05 hence 000101 ok page 85-94. this register has 8 bits 0-7.
    i write to each of the bits a 1, hence data =0xff. what does 0x3f do? its 63 it doesnt matter if I...
  45. Thanks Kurt, UHClem for the amount of large tips...

    Thanks Kurt, UHClem for the amount of large tips and tricks. I値l test it tomorrow for better understanding.

    But I don稚 think I can change the ADuCM360 CN0391 examples init, read write and Do...
  46. Thanks for that. I hope I am understanding it but...

    Thanks for that. I hope I am understanding it but I feel I am falling further in to limbo, the further we write here on the forum. I tried running other similar programs like, ad7124.ino and...
  47. ok Many thanks. i tried sending...

    ok Many thanks.

    i tried sending SPI.transfer(0x40|5) i got in return 255 with the code you provided. 11111111

    I think I am going to skip working with the CN0391 evaluation Kit,

    there are to...
  48. So I have to write to the register 0x05 11110000...

    So I have to write to the register 0x05 11110000 to get the ID code back correct? please show me what I am doing wrong.




    #include <SPI.h>

    //SPI defines
    #define TFT_DC 9
    #define TFT_CS 10
  49. So I have to write to the register 0x05 11110000...

    So I have to write to the register 0x05 11110000 to get the ID code back correct? please show me what I am doing wrong.




    #include <SPI.h>

    //SPI defines
    #define TFT_DC 9
    #define TFT_CS 10
  50. Ok ill will try this.. Please explain.( I...

    Ok ill will try this..

    Please explain.( I think I am getting the hang of it)
    SPI.transfer(0b00000000|(reg&0x3f));
    Or the 0b00000000 is true or reg&? What does this mean register? unsigned Char...
Results 1 to 50 of 114
Page 1 of 3 1 2 3