Recent content by Benjie

  1. B

    VARIOMETER using GY63/MS5611 barometer

    Additional information for remote audio: two types of transmitter can be used depending upon the receiver. If a handheld UHF receiver is used, like the Baufeng R5, it is better to use a 433 MHz FSK transmitter. In the other cases the use of a ASK transmitter demands an ASK receiver. Note that...
  2. B

    Faster code for MS5611 variometer

    Hippy, for curiosity, I eliminated the n samples average and just compared last with this; it works almost as well giving much larger execution speed spectrum. in fact I had to increase the final pause from nothing to 200 ms. Here the code: #Picaxe 08M2 #Terminal 4800 #No_Data setfreq m8...
  3. B

    VARIOMETER using GY63/MS5611 barometer

    Hippy, I think the project can be considered completed. Now the users may decide to add a RF transmitter or just a loudspeaker if used for paragliding or delta flights. The code is: #Picaxe 08M2 #Terminal 4800 #No_Data setfreq m8 Symbol reserveW0 = w0 Symbol reserveW1 = w1 Symbol...
  4. B

    VARIOMETER using GY63/MS5611 barometer

    I didn’t find in the manuals the meaning of the $ sign. I bet it means hexadecimal value while no sign is decimal. Additionally I am confused about # and %. Can you enlight me?
  5. B

    VARIOMETER using GY63/MS5611 barometer

    Excellent! You spotted the issue. Now it responds correctly with no sound in static conditions and beeps with the correct tone moving as little as 30 cm up and down. I connected a hearphone on C.4 instead of the transmitter to avoid RF interference. I have two options for it: a 433MHz data unit...
  6. B

    VARIOMETER using GY63/MS5611 barometer

    To easy the code reading I omitted most of comments. The actual code is modified to maximize the speed; it works. I added two sound codes one on ThisIsHigher and one on ThisIsLower. They execute correctly: see the code. PowerOnReset: HI2cSetup I2CMASTER, %11101110, I2CSLOW, I2CBYTE...
  7. B

    VARIOMETER using GY63/MS5611 barometer

    To generate a two tone sound I will try to use “diff” at the end of “ThisIsHigher” and “ThisIsLower” just before “GotoCalculateTheDifference”. Will see if a sound generation sat that level will repeat the diff large change.
  8. B

    VARIOMETER using GY63/MS5611 barometer

    Your code works nicely and fast enough for the final use. I have however a problem which appeared already in the past codes: anytime I attempt to use the "diff" to generate a sound, the diff start moving up and down by large amount also in stating conditions. I tried if....then and gosub with...
  9. B

    VARIOMETER using GY63/MS5611 barometer

    I still have a lot to learn. At my age (78) sometime is difficult. I am using the Mac editor because it is much faster than the Windows one. The option menu does not have the preprocessor. I'll move the set to a portable pc and will tick the Use preprocessor option.
  10. B

    VARIOMETER using GY63/MS5611 barometer

    About diff calculation wasn't simpler the previous code: Select Case w0 Case > last : diff = w0 - last : SerTxd( "+", #diff ) Case < last : diff = last - w0 : SerTxd( "-", #diff ) Else : SerTxd( "=" ) End Select
  11. B

    VARIOMETER using GY63/MS5611 barometer

    in some instances you use the minus sign on words and bytes: ; Make negative, because average - last is diff = -diff as far as I know variables cannot have a minus sign. Am I wrong?
  12. B

    VARIOMETER using GY63/MS5611 barometer

    SignedWord: If Negative(w0) Then ; this line gives syntax error w0 = -w0 SerTxd( "-", #w0 )
  13. B

    VARIOMETER using GY63/MS5611 barometer

    I’ll test your code to assess if, once all sertxd’s are omitted, final pause reduced to minimum and the setfreq increased to m8, the execution speed is acceptable.
  14. B

    VARIOMETER using GY63/MS5611 barometer

    The project can change to a 5 IC's system: 08M2, I2C Sensor, 16bit DAC, VF IC, TX with only 4 resistors.
  15. B

    VARIOMETER using GY63/MS5611 barometer

    I found a serial 16 bit DAC the AD5660. The 08M2 can read the least 16 bits of the sensor, serial them out to the AD5660 and drive a VF converter. All this in two tasks which will provide the pulsed audio output. Any advise?
Top