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

Search:

Type: Posts; User: CorBee

Page 1 of 7 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: Bat detector

    by CorBee
    Replies
    656
    Views
    63,503

    Hi all, The previous code was working ... but...

    Hi all,

    The previous code was working ... but not completely as planned. You could record data but not play them on the device (at least WAV formatted). This has been repaired in...
  2. Hi, I sometimes have used the following code,...

    Hi,

    I sometimes have used the following code, where the pragma pack(1) forces the compiler into keeping the structure byte aligned


    #pragma pack(1)
    typedef struct newPayload {
    //8 bytes ...
  3. Hi, I cant answer that for you. But encoding...

    Hi,

    I cant answer that for you. But encoding data with the ID of a sensor is only going to work for a few sensors and a single dataset. If you ever plan to extend that becomes more and more...
  4. This thread points to the same kind of issue :...

    This thread points to the same kind of issue : https://forum.pjrc.com/threads/46757-Teensy-3-5-with-nRF24L01-only-half-of-the-message-is-correct

    So its a matter of defining the variables on both...
  5. Hi, You cant have 8 digits in an unsigned int...

    Hi,

    You cant have 8 digits in an unsigned int normally ... so something must have gone wrong in the code either when sending or reading.

    Cor
    PS just checked. The unsigned int should be 2 bytes...
  6. If you share what you are receiving that might be...

    If you share what you are receiving that might be helpfull in finding what goes wrong. The code used for sending/receiving should then also be shared.
  7. Hi, I suggest investing time in understanding...

    Hi,

    I suggest investing time in understanding what goes wrong with the payload. Thats the most logical coding, the earlier code was just an example.

    Cor
  8. And another option to create a unique ID...

    And another option to create a unique ID directly: https://github.com/ricaun/ArduinoUniqueID
  9. Additionally: You could consider using the unique...

    Additionally: You could consider using the unique ID of your DS18B20 sensors as the ID for each node. Ive done that too, this can make your TX code even simpler as you dont need a static declared ID...
  10. Hi, You dont use temp1 or temp2 ... ! For...

    Hi,

    You dont use temp1 or temp2 ... !

    For the TX units:

    start by declaring this structure


    typedef struct {
  11. Hi By simply creating a payload typedef...

    Hi

    By simply creating a payload
    typedef struct PayloadFrame {
    unsigned int NodeId;
    float temperature;

    } PayloadFrame;

    static PayloadFrame Out_Payload;
  12. I suggest looking up how to create a payload...

    I suggest looking up how to create a payload structure. The advantage of that is that you can send/receive this as a single variable with the data inside the payload.

    This (see below) is for...
  13. Try using google to find things out ... eg...

    Try using google to find things out ... eg https://www.elec-cafe.com/multiple-nodes-nrf24l01-wireless-temperature-ds18b20-with-arduino-uno-2-transmitter-1-receiver/
  14. Nice to hear that. Good on you to keep trying...

    Nice to hear that. Good on you to keep trying also, frustration can be a unpleasant experience but when you overcome the issues ... you should have forgotten all about it ;)
  15. FNIGNERS crossed ;)

    FNIGNERS crossed ;)
  16. Yes, that looks as the reports you can see from...

    Yes, that looks as the reports you can see from others. So the perfboard version should work ! Make two and install the pingpong (role) code on them and dont forget to make one of them role=0 and the...
  17. Thats indeed wrong ... getting all 0 means that...

    Thats indeed wrong ... getting all 0 means that the arduino is not interacting with the NRF24L01+ ... Have you tested all your NRF24L01+ transceivers with this or only one ?
  18. You said "no luck", but why do you conclude that ?

    You said "no luck", but why do you conclude that ?
  19. What was the output of the testconnection.ino ?

    What was the output of the testconnection.ino ?
  20. And you also tried the suggestion I made in...

    And you also tried the suggestion I made in message #38 ?
  21. Thread: Bat detector

    by CorBee
    Replies
    656
    Views
    63,503

    Hi, For those interested, I have just uploaded...

    Hi,

    For those interested, I have just uploaded (https://github.com/CorBer/teensy_batdetector/tree/master/pre_compiled_hex ) a hex version of the new update (firmwaredev_20200925). In this update...
  22. The lines above the code state the logic behind...

    The lines above the code state the logic behind it. When you are testing devices you dont need to use the maximum power, doing so reduces the power needed to send data and thus also reduces...
  23. And finally (for today) this might be helpfull...

    And finally (for today) this might be helpfull (message #29) https://forum.arduino.cc/index.php?topic=421081.msg3653559#msg3653559
  24. Have you tried this advice "It is recommended to...

    Have you tried this advice "It is recommended to plce a 10F capacitor across VCC and GND"
    And furthermore, your measured all the connections ? No broken wires/disconnected breadboard points ?
  25. For the wires check for instance this thread for...

    For the wires check for instance this thread for arduino nano https://forum.arduino.cc/index.php?topic=500708.0
  26. When I work on things that are new to me I tend...

    When I work on things that are new to me I tend to remember a quote from a danish mathematician:

    The road to wisdom? — Well, it's plain
    and simple to express:
    Err
    and err
    and err again
    but...
  27. Yes you can switch roles in the code but ... you...

    Yes you can switch roles in the code but ... you need to go back in time first to be able to receive the data you just had sent ;)

    Your fingers and cables could be that there is a lot of static...
  28. Hi, For me it is unclear what you are trying...

    Hi,

    For me it is unclear what you are trying to achieve. Are you trying to receive with the same NRF24L01+ that has been sending ?

    Cor

    PS: if you are using the example from...
  29. Thread: Bat detector

    by CorBee
    Replies
    656
    Views
    63,503

    Hi, To get rid of the issues with possible...

    Hi,

    To get rid of the issues with possible overwrites of files-numbers etc I have changed the code for filenames. This is still a feature that needs some testing but my initial tests look fine.
    ...
  30. And does the data get transmitted ? Do you see it...

    And does the data get transmitted ? Do you see it on the RX side ?
  31. No Data sent in serial ? Also if you have no...

    No Data sent in serial ?
    Also if you have no delay in the loop this will run continously ... I would add either a long delay or let the transmissions happend at certain second (based on...
  32. OK. Than proceed as suggested, first make sure...

    OK. Than proceed as suggested, first make sure the data leaving the TX is what you want. Serial will tell you that, and make sure it sends out data at a regular interval (not to short). If that works...
  33. Oh I now only get the point of your message ......

    Oh I now only get the point of your message ... you are not even sending/receiving real data yet ... You cant test anything without the proper hardware !
  34. Should be easy to find out. Just make your TX...

    Should be easy to find out. Just make your TX send every 10 seconds or so and check if you get incoming data every 10 seconds also. If you get a regular signal coming in that is most likely due to TX...
  35. The & and size are logical, you send the data of...

    The & and size are logical, you send the data of a variable and the receiver needs to know how many bytes should be send (depending on the type of variable)


    from...
  36. WOuld be got to be sure about what the TX has...

    WOuld be got to be sure about what the TX has send also, if TX sends something wrong RX cant correct that.

    What happens if you dont try to send the data as a float but as a string (I saw you had...
  37. And what does the serial on the TX and RX show ?

    And what does the serial on the TX and RX show ?
  38. No problem, this if often the only way to inspect...

    No problem, this if often the only way to inspect code and see where things might go wrong.

    Cor
  39. Share your code

    Share your code
  40. Hi, NaN stands for " Not a number " and could...

    Hi,

    NaN stands for " Not a number " and could be that there is something in the format of the data you are receiving ("." or "," as decimal separator for instance). Try printing the data not as a...
  41. Thread: Bat detector

    by CorBee
    Replies
    656
    Views
    63,503

    Hi, Edwin reported this morning that the code...

    Hi,

    Edwin reported this morning that the code to prevent the counter resetting to 0 during autorecord has worked. Some more testing will be done and after that I will probably update the code and...
  42. Hi, I have >10 running at the moment. I...

    Hi,

    I have >10 running at the moment. I combined the MSP430 and the NRF24L01 on a small perfboard and the DS18B20 is on the same perfboard. I got MSP430G2553 chips from a time that TI was more or...
  43. Hi, One of the easiest ways to achieve this is...

    Hi,

    One of the easiest ways to achieve this is to use NRF24L01 RF transceivers. There's loads of code out there that show how to send/receive data with these. For each room you need a...
  44. Thread: Bat detector

    by CorBee
    Replies
    656
    Views
    63,503

    AUTORECORD issues

    Hi,

    Edwin has done some good testing and found out that the AUTORECORD is not yet working as planned. This is the case for V1.0 and also for the more recent update. I am currently busy (together...
  45. Hi, In the batdetector project (...

    Hi,

    In the batdetector project ( https://forum.pjrc.com/threads/38988-Bat-detector ) we use the oscillator function at very high samplerates (up to 352k) without any problems. In the heterodyne...
  46. Thread: Bat detector

    by CorBee
    Replies
    656
    Views
    63,503

    Hi, Ive just uploaded a hex where the HiF_bin...

    Hi,

    Ive just uploaded a hex where the HiF_bin is not used anymore, this is a direct link https://github.com/CorBer/teensy_batdetector/blob/master/pre_compiled_hex/firmware_DEV20200904.hex
    ...
  47. Thread: Bat detector

    by CorBee
    Replies
    656
    Views
    63,503

    Instead of changing the HiF_bin (used currently...

    Instead of changing the HiF_bin (used currently in the detection of ultrasound) its also an option to completely remove the test, the Hif_bin is only used in this line of code of bat_fft.h
    if...
  48. Thread: Bat detector

    by CorBee
    Replies
    656
    Views
    63,503

    In the startrekversion I chain a heterodyne-mixer...

    In the startrekversion I chain a heterodyne-mixer after the time-expansion. This allows you to hear the sounds from 0-100000 Khz as a band from -5Khz to 5Khz with the TE_expander on 1/10. Not ideal...
  49. Thread: Bat detector

    by CorBee
    Replies
    656
    Views
    63,503

    Hi, We could make the HiF_bin simply half the...

    Hi,

    We could make the HiF_bin simply half the samplerate minus 5Khz or so ? Since I dont think at the top of the range will be as sensitive ?

    Cor
    PS: I could also open the startrek version :)...
  50. Thread: Bat detector

    by CorBee
    Replies
    656
    Views
    63,503

    Hope you like it !

    Hope you like it !
Results 1 to 50 of 342
Page 1 of 7 1 2 3 4