Search found 27 matches

by Oderlando
Sun Oct 06, 2019 11:01 pm
Forum: General Programming
Topic: Problem reading 10-bit ADC on 12F675 PIC
Replies: 3
Views: 1509

Re: Problem reading 10-bit ADC on 12F675 PIC

I modified the flowchart and applied some minor improvements. For 8-bit ADC reading, everything goes perfectly fine. I am sending the flowchart that works. But, something still leaves me in doubt ... When I try to read the 10-bit ADC, an error message is displayed during compilation. I tried in ever...
by Oderlando
Sat Oct 05, 2019 4:56 pm
Forum: General Programming
Topic: Problem reading 10-bit ADC on 12F675 PIC
Replies: 3
Views: 1509

Problem reading 10-bit ADC on 12F675 PIC

765/5000 Hello. I set up the code for a triac thermostat controlled by a 12F675 PIC, but some error is occurring. The thermostat works as follows: a zero crossing detector sends a high level signal to the microcontroller and after that, the microcontroller varies the triac drive actuation delay time...
by Oderlando
Thu Feb 14, 2019 9:16 pm
Forum: General Programming
Topic: Problems with different preescaler Loops
Replies: 5
Views: 1650

Re: Problems with different preescaler Loops

Would it be possible for me to read the Timer0 record in the first loop (in order to get a higher resolution) using FCV_Variable = TIMER0?
by Oderlando
Wed Feb 13, 2019 12:23 pm
Forum: General Programming
Topic: Problems with different preescaler Loops
Replies: 5
Views: 1650

Re: Problems with different preescaler Loops

I am sending the correct file.
by Oderlando
Tue Feb 12, 2019 5:55 pm
Forum: General Programming
Topic: Problems with different preescaler Loops
Replies: 5
Views: 1650

Re: Problems with different preescaler Loops

Excuse me. Only now I noticed that I posted the wrong file. I'll send the correct one as soon as I get home.
by Oderlando
Tue Feb 12, 2019 12:48 pm
Forum: General Programming
Topic: Problems with different preescaler Loops
Replies: 5
Views: 1650

Problems with different preescaler Loops

Hello. I'm having some problems regarding timing through interrupts. I need to understand a concept that is giving me problems in my project. I'm posting a reduced flowchart just so I can understand the idea. In the original flowchart I need someone who at a given time has a wide interval between in...
by Oderlando
Wed Jan 16, 2019 8:26 pm
Forum: General Programming
Topic: Problems reading the DHT11 sensor
Replies: 10
Views: 2732

Re: Problems reading the DHT11 sensor

I have a problem that I still can not solve. I'm trying in every possible way. I need to read the sensor at regular intervals, and at the same time make the timing of a clock. I am using a 16F877A and a crystal of 20MHZ (with very low frequencies it was not possible to read the sensor). I want a pre...
by Oderlando
Wed Jan 02, 2019 7:43 pm
Forum: General Programming
Topic: Problems reading the DHT11 sensor
Replies: 10
Views: 2732

Re: Problems reading the DHT11 sensor

I have corrected my flowchart. In the flow chart, I used humidity equal to 0. The loop operates until the sensor shows some humidity value above 20%, ie the loop works until the sensor can be read and "x" shows how many loops were needed to read the sensor. In actual hardware testing the l...
by Oderlando
Wed Jan 02, 2019 5:19 pm
Forum: General Programming
Topic: Problems reading the DHT11 sensor
Replies: 10
Views: 2732

Re: Problems reading the DHT11 sensor

Happy New Year to all !. I'm putting together a controller for incubators. Several functions are performed at the same time, including a stopwatch for a clock. This way, I can not enter loop. I am trying to get the sensor to read and can determine how much time has been spent for this by correcting ...
by Oderlando
Tue Jan 01, 2019 11:10 am
Forum: General Programming
Topic: Problems reading the DHT11 sensor
Replies: 10
Views: 2732

Problems reading the DHT11 sensor

Hi. I'm having trouble reading a DHT11 sensor. I was able to read the sensor normally in other flowcharts, but in this particular flowchart I did not succeed. The purpose of this flowchart is to make a Loop work until the sensor returns with the humidity value. After this, the humidity value is show...
by Oderlando
Tue Dec 25, 2018 5:14 am
Forum: General Programming
Topic: Settings for ATmega328P
Replies: 1
Views: 821

Settings for ATmega328P

Hello. To date I have used PIC drivers. But recently, I decided to explore an ATmega328P (No Arduino bootloader). I tried to make a flashing LED but I did not succeed. I am using an 8MHz crystal, but I do not understand the settings of this microcontroller. There are several frequency options that s...
by Oderlando
Fri Dec 07, 2018 10:03 pm
Forum: General Programming
Topic: Measurement of temperature and relative humidity using DHT11
Replies: 90
Views: 53415

Re: Measurement of temperature and relative humidity using DHT11

I also had problems, but using a DHT Sensor. Only later did I find out that I was using crystals of very low speed (4 and 8 MHz). My problem was solved with a higher speed crystal (20MHz).
by Oderlando
Fri Dec 07, 2018 4:24 pm
Forum: General Programming
Topic: Problems setting up setup
Replies: 2
Views: 985

Re: Problems setting up setup

It did not occur to me that I was not reading the door during the loop. Thank you very much. I was able to fix this quickly.
by Oderlando
Fri Dec 07, 2018 9:57 am
Forum: General Programming
Topic: Problems setting up setup
Replies: 2
Views: 985

Problems setting up setup

Hi. I'm having a little problems with a flowchart I set up. I believe someone can help me fix it. This is a SetPoint that I'm slowly developing. It works as follows: Setpoint starts with initial zero value. When the A1 input is activated for at least 2 seconds, the Setup mode is activated. A led sig...
by Oderlando
Thu Nov 29, 2018 6:28 pm
Forum: General Programming
Topic: Problem in reading the DHT11 sensor
Replies: 12
Views: 3742

Re: Problem in reading the DHT11 sensor

Thank you all for the help and support you have given me. I will continue the studies with the flowcode and gradually evolve with it. Thank you.
by Oderlando
Tue Nov 27, 2018 1:26 am
Forum: General Programming
Topic: Problem in reading the DHT11 sensor
Replies: 12
Views: 3742

Re: Problem in reading the DHT11 sensor

I'm more lost than I imagined. I think I'll need some time to study FlowCode and then go back to doing projects :( I decided to use this diagram to read the DTH11 because the other diagram I sent here had a problem reading the sensor, but it ended up becoming even more complicated to follow this pat...
by Oderlando
Mon Nov 26, 2018 10:36 pm
Forum: General Programming
Topic: Problem in reading the DHT11 sensor
Replies: 12
Views: 3742

Re: Problem in reading the DHT11 sensor

Hi ! I have a flow chart for the Atmega8. It worked well on proteus simulation. Probably works well in real life. I'm sending the flowchart and proteus file. I tried to modify the flowchart to work with PIC16F88 and I am not able to compile the file. Can you take a look at me? I could not identify t...
by Oderlando
Sun Nov 25, 2018 8:44 pm
Forum: General Programming
Topic: Problem in reading the DHT11 sensor
Replies: 12
Views: 3742

Re: Problem in reading the DHT11 sensor

Hi, Benj. I mounted the circuit according to the proteus simulation and recorded the microcontroller with the HEX file generated by FlowCode and the result of the circuit was the same as the one emulated by the proteus: the DHT11 sensor returns with value 1 (error). The value that was shown in the d...
by Oderlando
Fri Nov 23, 2018 12:57 pm
Forum: General Programming
Topic: Problem in reading the DHT11 sensor
Replies: 12
Views: 3742

Re: Problem in reading the DHT11 sensor

I am using version 7 of FlowCode
by Oderlando
Fri Nov 23, 2018 12:56 pm
Forum: General Programming
Topic: Problem in reading the DHT11 sensor
Replies: 12
Views: 3742

Re: Problem in reading the DHT11 sensor

I used this same hardware to simulate the proteus for reading an ADC and it worked perfectly. I do not think it's a proteus problem. The problem only arises when I try to read the DHT11 sensor. I'm sending the zipped proteus file. proteus showed no problems emulating DTH11 with another code
by Oderlando
Fri Nov 23, 2018 12:11 pm
Forum: General Programming
Topic: Problem in reading the DHT11 sensor
Replies: 12
Views: 3742

Problem in reading the DHT11 sensor

Hi. I set up my flowchart to show the humidity values, read by a DHT11 sensor, to be shown on a 7-digit 4-digit display. Flowcode simulation works, but does not work on Proteus. The proteus shows the display with a zero value. I noticed that for some reason the sensor is not being read because the v...
by Oderlando
Wed Nov 21, 2018 8:50 pm
Forum: General Programming
Topic: Measurement of temperature and relative humidity using DHT11
Replies: 90
Views: 53415

Re: Measurement of temperature and relative humidity using DHT11

You were right. GetHumidityWole is not being called. Insert a value for moisture at the beginning of the program and it is appearing in the simulation. Any suggestions on what might be happening?
by Oderlando
Wed Nov 21, 2018 8:43 pm
Forum: General Programming
Topic: Measurement of temperature and relative humidity using DHT11
Replies: 90
Views: 53415

Re: Measurement of temperature and relative humidity using DHT11

Hi mnf. I tested your code and the display remained off. I could not determine why. I made some modifications to the flowchart that I had posted earlier. I used GetHumidityWole, as you said, and got the flowcode simulation to work. When I tested the proteus, the display shows something, but only sho...
by Oderlando
Wed Nov 21, 2018 11:01 am
Forum: General Programming
Topic: Measurement of temperature and relative humidity using DHT11
Replies: 90
Views: 53415

Re: Measurement of temperature and relative humidity using DHT11

Hi mnf. In the proteus simulator this flowchart is not working. Nothing appears on the display. I used GetHumidityWole, as you said. I simulated the proteus and also did not show the humidity reading. The difference is that now the display lights, but only shows a zero value. I'm posting the flowchart
by Oderlando
Tue Nov 20, 2018 11:20 pm
Forum: General Programming
Topic: Measurement of temperature and relative humidity using DHT11
Replies: 90
Views: 53415

Re: Measurement of temperature and relative humidity using DHT11

I've made a breakthrough. I can already display the numbers in the diplay. Now all I need to do is find out why this odd behavior of the numbers go up to 100 and return to zero as the humidity value increases to the maximum.