Search found 190 matches

by viki2000
Tue May 04, 2021 6:55 am
Forum: Feature Requests
Topic: BME680 – Air quality sensor
Replies: 5
Views: 7140

Re: BME680 – Air quality sensor

Now is 2 years later.
Is this sensor included now in Flowcode 9?
by viki2000
Fri Apr 03, 2020 12:13 pm
Forum: Feature Requests
Topic: BME680 – Air quality sensor
Replies: 5
Views: 7140

Re: BME680 – Air quality sensor

It is now over 1 year…
Any chance to work on BME680 and have it as standard component in Flowcode?
by viki2000
Fri Jan 25, 2019 9:38 am
Forum: Feature Requests
Topic: BME680 – Air quality sensor
Replies: 5
Views: 7140

Re: BME680 – Air quality sensor

I do not know if noticed the links recommended by Bosh directly, where we can see different breakout boards and the afferent code/library. Maybe that helps to debug further: 1) Here is from BlueDot: A) An example based on Arduino and Adafruit library: https://www.bluedot.space/sensor-boards/bme680/ ...
by viki2000
Wed Jan 23, 2019 8:43 am
Forum: Feature Requests
Topic: BME680 – Air quality sensor
Replies: 5
Views: 7140

BME680 – Air quality sensor

In Flowcode 7 there is a component for the BME280 Bosh sensor. Now we have Flowcode 8 and Bosch has also a new sensor BME680, which adds air quality measurement. https://www.bosch-sensortec.com/bst/products/all_products/bme680 On the link above, if you go at "Downloads" and then "Further application...
by viki2000
Mon Jun 18, 2018 8:25 am
Forum: Bug reports
Topic: FC7 PIC10F322 – Oscillator Error
Replies: 8
Views: 8101

Re: FC7 PIC10F322 – Oscillator Error

Thank you for the corrected files.
by viki2000
Fri Jun 15, 2018 1:16 pm
Forum: Bug reports
Topic: FC7 PIC10F322 – Oscillator Error
Replies: 8
Views: 8101

Re: FC7 PIC10F322 – Oscillator Error

Are my last 2 questions above improper or not interesting somehow?
by viki2000
Tue Jun 12, 2018 7:36 am
Forum: Bug reports
Topic: FC7 PIC10F322 – Oscillator Error
Replies: 8
Views: 8101

Re: FC7 PIC10F322 – Oscillator Error

Thank you LeighM and medelec35 for the solution. It works now indeed with 16MHz. As hackinblack is right with the 20MHz observation when it comes to External Clock (EC) – datasheet page 168, TABLE 24-6, would that imply that we have to change the “10F322.fcdx” to 20MHz? <root> <device name='10F322' ...
by viki2000
Mon Jun 11, 2018 12:30 pm
Forum: Bug reports
Topic: FC7 PIC10F322 – Oscillator Error
Replies: 8
Views: 8101

FC7 PIC10F322 – Oscillator Error

Hi, I have just seen your recent Vlog 7 about uC32 PWM on FC8: http://www.matrixtsl.com/blog/flowcode-8-vlog-7-programming-chipkit-uc32-with-pwm/ and being inspired by it I wanted to try a simple test with that code with PIC10F322 and PWM in FC7. The PIC10F322 Datasheet Oscillator Module - page 24: ...
by viki2000
Tue Mar 06, 2018 3:21 pm
Forum: General Programming
Topic: Rotary Quadrature Encoder – Improvements
Replies: 6
Views: 6062

Re: Rotary Quadrature Encoder – Improvements

Ben, I just need one confirmation from your side. You mentioned above that “With components like switch inputs we allow time based debounce which works like this.” in = read input while (timeout < debouncetime) { delay_us(1) if (read input == in) timeout = timeout + 1 else { timeout = 0 in = read in...
by viki2000
Tue Mar 06, 2018 1:50 pm
Forum: General Programming
Topic: Rotary Quadrature Encoder – Improvements
Replies: 6
Views: 6062

Re: Rotary Quadrature Encoder – Improvements

Only now I have time again to look at the microcontroller projects, and unfortunately not for long time. I will try to test different software debouncing methods. Looking on internet over the last years I found next debouncing methods to be the best. I will try some of them, one by one when I have t...
by viki2000
Tue Mar 06, 2018 12:04 pm
Forum: General Programming
Topic: Disable fields in Component Properties
Replies: 6
Views: 5280

Re: Disable fields in Component Properties

A short double check confirms my guess: the SetWritable instead of SetVisible makes exactly what I wanted.
And you were right, the cosmetic name does not work, it must be used the variable name.
Thank you for your help!
by viki2000
Tue Mar 06, 2018 11:54 am
Forum: General Programming
Topic: Disable fields in Component Properties
Replies: 6
Views: 5280

Re: Disable fields in Component Properties

I did exactly what you did, only that I named the macro Ev_Property_Change as I have seen in your first screenshots above. Now in the last code proposed by you – it works! – I have seen that you named the macro it Ev_Property. But it should not matter. I checked one more time my initial code and I f...
by viki2000
Tue Mar 06, 2018 9:55 am
Forum: General Programming
Topic: Disable fields in Component Properties
Replies: 6
Views: 5280

Re: Disable fields in Component Properties

A little bit more help is welcome. I started to look at the quadrature encoder possible improvements and I use the source code provided here: http://www.matrixtsl.com/mmforums/viewtopic.php?f=7&t=19676 Below is my trial component that does not work now. I tried to add the event property change macro...
by viki2000
Mon Mar 05, 2018 4:28 pm
Forum: General Programming
Topic: Disable fields in Component Properties
Replies: 6
Views: 5280

Re: Disable fields in Component Properties

Thank you Leigh!
I will try it out hopefully tomorrow and I will let you know how it goes.
by viki2000
Mon Mar 05, 2018 3:54 pm
Forum: General Programming
Topic: Disable fields in Component Properties
Replies: 6
Views: 5280

Disable fields in Component Properties

This is a general question about situations when we make a new component. I have chosen as particular example the SSD1306 I2C display. How do you set the Properties of the component, when you create the component, to be able to disable/enable fields based on what we choose in a list of a previous fi...
by viki2000
Mon Mar 05, 2018 3:04 pm
Forum: General Programming
Topic: BME280!
Replies: 15
Views: 10669

Re: BME280!

Hello Giuseppe, I was not online during the last 3 months. Maybe I will have some time during the following weeks to look at some project with microcontrollers. I have tested 4-5 different types of OLEDs, I2C and SPI. The SH1106 component was made by Ben (nice guy) after I sent him one display and w...
by viki2000
Fri Jan 05, 2018 2:48 pm
Forum: General Programming
Topic: Rotary Quadrature Encoder – Improvements
Replies: 6
Views: 6062

Re: Rotary Quadrature Encoder – Improvements

Thank you very much for the source code.
I will try to look into it hopefully in about 2 weeks from now on.
by viki2000
Fri Jan 05, 2018 12:41 am
Forum: General Programming
Topic: Rotary Quadrature Encoder – Improvements
Replies: 6
Views: 6062

Re: Rotary Quadrature Encoder – Improvements

Any idea when Ben comes back in the office? To cut it short: -It would be enough if at Connections A and B beside the hardware port pins to have also the possibility of 2 bits/variables. Let’s say we have bit variables FIN1 and FIN2 (Filtered Input 1 and Filtered Input 2 or FINa and FINb with a and ...
by viki2000
Thu Jan 04, 2018 1:21 pm
Forum: General Programming
Topic: Rotary Quadrature Encoder – Improvements
Replies: 6
Views: 6062

Rotary Quadrature Encoder – Improvements

If you consider the question below should not have been posted here, then please move it here: https://www.matrixtsl.com/mmforums/viewforum.php?f=65 1) Would be possible to make next improvement to the Rotary Quadrature Encoder component? The actual software denouncing is based on time delay. Beside...
by viki2000
Thu Jan 04, 2018 9:51 am
Forum: Flowcode V7
Topic: Internal Real Time Clock RTCC PIC8 & PIC16
Replies: 27
Views: 16751

Re: Internal Real Time Clock RTCC PIC8 & PIC16

Would be possible to share the source code of the RTC, so we can start debug it, because it seems it has errors, I think in initialization, in some cases as dsPIC33FJ128GP802 for example? If not, can you debug it or try to find out what other settings, C code must be added to the existing component ...
by viki2000
Tue Dec 19, 2017 1:42 pm
Forum: General Programming
Topic: RTC component and dsPIC33FJ128GP802
Replies: 2
Views: 3255

Re: RTC component and dsPIC33FJ128GP802

The next C code placed instead of Initialize or before or after Initialize makes the RTC to run. /* Enable the secondary oscillator for 32.768KHz crystal */ __builtin_write_OSCCONL(OSCCON |2); /* enable write to the RTCC */ __builtin_write_RTCWEN(); _RTCEN = 1; /* enable the RTCC module */ _RTCPTR =...
by viki2000
Tue Dec 19, 2017 11:03 am
Forum: Flowcode V7
Topic: Internal Real Time Clock RTCC PIC8 & PIC16
Replies: 27
Views: 16751

Re: Internal Real Time Clock RTCC PIC8 & PIC16

Does anyone tried the RTC component and it works?
If yes, then with what MCU? Do you have a test program?
I have tried RTC with dsPIC33FJ128GP802 and for me it does not work. I opened up a question here:
viewtopic.php?f=7&t=19621
by viki2000
Tue Dec 19, 2017 11:02 am
Forum: General Programming
Topic: RTC component and dsPIC33FJ128GP802
Replies: 2
Views: 3255

RTC component and dsPIC33FJ128GP802

Hi, I have FC7 Professional updated to the latest version 7.3.0.5 (19.12.2017). The RTC component is version 2.0. I use dsPIC33FJ128GP802 with internal oscillator (FRC) + PLL for CPU and an external crystal 32.768Khz attached to the SOSC pins for RTCC. Below is a test program, which does not work fo...
by viki2000
Mon Dec 11, 2017 9:25 am
Forum: General Programming
Topic: BME280 Pressure Sensor
Replies: 45
Views: 37749

Re: BME280 Pressure Sensor

Here are few more observations. The altitude calculation is a crap. I would take it out of the component macro. I have the sensor on my table and it changes too much. I had values as 70m, then in another day 116m and today 250m – and all that without any change in the software/calculation or hardwar...
by viki2000
Thu Dec 07, 2017 3:38 pm
Forum: General Programming
Topic: BME280 Pressure Sensor
Replies: 45
Views: 37749

Re: BME280 Pressure Sensor

I have added: - Integer Compensation also for Temperature and for Humidity. - Altitude calculation based on Sea Level Pressure based on formula from sensor Bosch BMP180 - datasheet page 16: https://ae-bst.resource.bosch.com/media/_tech/media/datasheets/BST-BMP180-DS000-121.pdf It remains to test the...