Search found 311 matches

by electron67
Wed Jan 05, 2022 11:46 pm
Forum: General Programming
Topic: How to do Pwm off and on in flowcode??
Replies: 9
Views: 6858

Re: How to do Pwm off and on in flowcode??

Hello, Martin I know it has nothing with the question; I have been in the Matrix forum (Flowcode 3) since 2008, I was taking a look at the topics, I see that Martin (Medelec) is now part of the Matrix Staff, I CONGRATULATE You !!! You are one of the people who is contributing with your knowledge to ...
by electron67
Fri Sep 17, 2021 4:28 pm
Forum: Flowcode V7
Topic: Candy Machine
Replies: 7
Views: 4850

Re: Candy Machine

I tried with a level switch, but I have the idea of making a few devices and I was looking for a way to simplify the manufacturing and speed up the assembly, trying to correct the fault with software. . .but I think it would be the safest option.
by electron67
Fri Sep 17, 2021 3:41 pm
Forum: Flowcode V7
Topic: Candy Machine
Replies: 7
Views: 4850

Re: Candy Machine

This is the flowchart I was using. . . .then add the option SETPOSITION (0, 0) in the sequence of the program when it is waiting for the coin to be deposited to make sure the door does not stay open, that's where the vibration started.
servoDOOR1.fcfx
(13.17 KiB) Downloaded 175 times
by electron67
Fri Sep 17, 2021 3:25 pm
Forum: Flowcode V7
Topic: Candy Machine
Replies: 7
Views: 4850

Re: Candy Machine

Hi Benj, I know it sounds very sweet :D I use SETPOSITION (0, 0) and then DISABLE SERVO, but sometimes the door opens a little and I wanted that without using a level switch, through programming the door would be kept closed safely. Is there a way to use the function (IF) using some variable (X) to ...
by electron67
Thu Sep 16, 2021 6:37 pm
Forum: Flowcode V7
Topic: Candy Machine
Replies: 7
Views: 4850

Candy Machine

Hello everyone, A question about servos; I am using a servo to open and close a door which releases candy; It works by inserting a coin, activates the servo and opens the door to release a certain amount of candys. The problem I had was that sometimes the door stayed a little open and the candys cam...
by electron67
Thu Dec 24, 2020 7:11 pm
Forum: Flowcode V8
Topic: Merry Christmas!
Replies: 11
Views: 7105

Re: Merry Christmas!

Merry Christmas !!!
by electron67
Thu Nov 26, 2020 5:17 pm
Forum: Flowcode V7
Topic: Help with SLEEP and WAKE UP PIC16F648A
Replies: 10
Views: 7722

Re: Help with SLEEP and WAKE UP PIC16F648A

Hi,

Thanks a lot, now I understand the sleep mode better, you clarified my doubts, I will do more tests, the PIC12F1840 contains the features you mention.

Best Regards !!!
by electron67
Fri Nov 20, 2020 3:55 am
Forum: Flowcode V7
Topic: Help with SLEEP and WAKE UP PIC16F648A
Replies: 10
Views: 7722

Re: Help with SLEEP and WAKE UP PIC16F648A

Hi,

Yes, the idea is to put the chip to sleep, the WDT will activate the device after the preset time and continue the operation, erasing continuously in each period of time.

Best Regards !!!
by electron67
Mon Nov 16, 2020 6:14 pm
Forum: Flowcode V7
Topic: Help with SLEEP and WAKE UP PIC16F648A
Replies: 10
Views: 7722

Re: Help with SLEEP and WAKE UP PIC16F648A

Hi, Thank you very much for your help, use the pic12F1840 just need to configure the programming options window, select the automatic Watchdog mode and enable the Watchdog; With these options selected, I choose the time in which the Watchdog enters; performs the complete program sequence and the PIC...
by electron67
Thu Sep 24, 2020 8:53 pm
Forum: Flowcode V7
Topic: Help with SLEEP and WAKE UP PIC16F648A
Replies: 10
Views: 7722

Re: Help with SLEEP and WAKE UP PIC16F648A

Hi, I still can't handle SLEEP () mode I'm still trying to work with SLEEP () mode; and if it goes into sleep mode, but I can't wake up, with INT or IOC interrupts; When I add 10 mS to it in the MACRO interrupt it shows me error when compiling and when I use to WDT : WDT MX_CLEAR_WATCHDOG; WDTCONbit...
by electron67
Mon Sep 21, 2020 4:30 pm
Forum: Flowcode V7
Topic: Help with SLEEP and WAKE UP PIC16F648A
Replies: 10
Views: 7722

Re: Help with SLEEP and WAKE UP PIC16F648A

Hi Stefan,

I appreciate the help, I will eliminating the delay, to see if I can sleep and wake up the PIC correctly without interrupting the correct sequence in the programming.

Thank you very much
Enrique
by electron67
Sun Sep 20, 2020 6:59 pm
Forum: Flowcode V7
Topic: Help with SLEEP and WAKE UP PIC16F648A
Replies: 10
Views: 7722

Re: Help with SLEEP and WAKE UP PIC16F648A

Hello I have done many different tests, I used the PIC16F1847, I was able to enter the SLEEP mode and later to WAKE UP, but when the PIC wakes up, it just starts the program sequence, it interrupts and starts from the beginning, it does not finish the sequence started; for example, in the published ...
by electron67
Sat Sep 19, 2020 1:28 am
Forum: Flowcode V7
Topic: CONNECT 2 SENSOR I2C_MASTER AT THE SAME PIC
Replies: 6
Views: 5643

Re: CONNECT 2 SENSOR I2C_MASTER AT THE SAME PIC

Thanks for your help :D
Enrique
by electron67
Fri Sep 18, 2020 9:18 pm
Forum: Flowcode V7
Topic: Help with SLEEP and WAKE UP PIC16F648A
Replies: 10
Views: 7722

Help with SLEEP and WAKE UP PIC16F648A

Hello please can someone help me, I'm trying to make a small circuit that uses 3 AA batteries and I need to send the pic to SLEEP mode, when checking the current consumption in the PIC I realize that the current drops considerably, but I can't get the switch to do the process programmed, the program...
by electron67
Tue Sep 15, 2020 5:06 pm
Forum: Flowcode V7
Topic: CONNECT 2 SENSOR I2C_MASTER AT THE SAME PIC
Replies: 6
Views: 5643

Re: CONNECT 2 SENSOR I2C_MASTER AT THE SAME PIC

Hello Benj,

Ok, so they are 2 identical sensors with the same address connected to a PIC; I found a PIC16F1847 has two I2C_master ports (CHANNEL 1 B1 B4 and CHANNEL 2 B2 B5) and the LCDI2C display connected to I2C SOFTWARE A1 A2.
Theoretically possible to do this?

Thank You Benj
by electron67
Mon Sep 14, 2020 8:32 pm
Forum: Flowcode V7
Topic: CONNECT 2 SENSOR I2C_MASTER AT THE SAME PIC
Replies: 6
Views: 5643

CONNECT 2 SENSOR I2C_MASTER AT THE SAME PIC

Hello I want to connect two equal sensors with I2C_MASTER communication in the same PIC to be read by the same Display; I found the PIC18F26J11. . . I see that this PIC has 2 communication ports I2C_MASTER (CHANEL1 AND SOFTWARE). Can someone please guide me if it is possible to connect those 2 senso...
by electron67
Wed Jul 08, 2020 4:16 pm
Forum: Flowcode V7
Topic: Help with Variable comparison
Replies: 7
Views: 5613

Re: Help with Variable comparison

Hello Martin,

Excellent !!! It works, the program is simple, I would never have done it using that method. . .

Thank You !!!
Enrique
by electron67
Wed Jul 08, 2020 5:20 am
Forum: Flowcode V7
Topic: Help with Variable comparison
Replies: 7
Views: 5613

Re: Help with Variable comparison

I am closer
by electron67
Wed Jul 08, 2020 5:19 am
Forum: Flowcode V7
Topic: Help with Variable comparison
Replies: 7
Views: 5613

Re: Help with Variable comparison

I am closer
by electron67
Wed Jul 08, 2020 3:07 am
Forum: Flowcode V7
Topic: Help with Variable comparison
Replies: 7
Views: 5613

Re: Help with Variable comparison

Hi Martin,

This flowchart is what I think could be excluding variables until reaching the highest value, but I think it would be a huge program.

Enrique
by electron67
Tue Jul 07, 2020 11:13 pm
Forum: Flowcode V7
Topic: Help with Variable comparison
Replies: 7
Views: 5613

Help with Variable comparison

Hello, I thought it was an easy comparison, but comparing each variable with the others has been difficult and I got lost; I am trying to compare variables and know which is the one with the highest value; for example X1 = 25, X2 = 31, X3 = 45, X4 = 39, X5 = 40, X6 = 37, X7 = 29; how to find the cor...
by electron67
Fri Nov 29, 2019 12:53 am
Forum: Flowcode V8
Topic: V8 Worth the Upgrade?
Replies: 5
Views: 3773

Re: V8 Worth the Upgrade?

Hello, My personal opinion ( Leaning on the forum since Jan 12, 2008 ) I also use Flowcode from version 3 until now and Benj, Martin (Medelec), Leigh, David, Qmesar, Enamul and many more electronic colleagues, with whom we have supported, even some do not work in Matrix and any way they have given u...
by electron67
Mon Jun 10, 2019 4:34 pm
Forum: Flowcode V6
Topic: SIM800L
Replies: 13
Views: 12720

Re: SIM800L

Hello Jan, I do not know what failure 255 (NO REPLY); in my projects with the GSM module it generates code 0 (ok), from the first second that I connect to the GSM power supply, it generates OK, even when I'm still the signal is not linked to the GSM, the LED flashes quickly and then slowly and in bo...
by electron67
Sat Jun 08, 2019 5:11 pm
Forum: Flowcode V6
Topic: SIM800L
Replies: 13
Views: 12720

Re: SIM800L

Hello Jan, the led of the sim800l module flashes continuously fast when no signal is detected, when the module detects signal and the communication is linked to the sim, the led flashes slowly between 2 to 3 seconds between a flashing and another. You can exchange the sim of other companies and do n...