Search found 18 matches

by ule
Tue Nov 08, 2022 10:55 pm
Forum: Flowcode V6
Topic: LCD 2x16 I2C backlight
Replies: 17
Views: 27673

Re: LCD 2x16 I2C backlight

I used different approach. I cut the trace on pcb of i2c backpack, between the PCF8574 and transistor. Remove pull up resistor from base of transistor. On my pcb i added pull down resistor to D6 on arduino and connected wire to base of transistor. Everything working as i want.
by ule
Sun Nov 06, 2022 5:05 pm
Forum: Flowcode V6
Topic: LCD 2x16 I2C backlight
Replies: 17
Views: 27673

Re: LCD 2x16 I2C backlight

Well, if I put viktor_au last sample code into my project it does not working as is should. I wrote some other sample code (i think is better, because it does not affects on whole flowchart, because of delay function). Attached code is working in simulation mode and on hardware. But.... :? I figured...
by ule
Sun Nov 06, 2022 4:41 pm
Forum: Flowcode V6
Topic: Arduino nano, multiple DS18B20 problem
Replies: 16
Views: 22741

Re: Arduino nano, multiple DS18B20 problem

Charts are posted in first post. One with 5 sensors (Merjenje_temp_zalogovnika_OK)-> (working) and one with 6 sensors (Merjenje_temp_zalogovnika_NE_6T)-> (not working).
by ule
Wed Nov 02, 2022 10:39 pm
Forum: Flowcode V6
Topic: Arduino nano, multiple DS18B20 problem
Replies: 16
Views: 22741

Re: Arduino nano, multiple DS18B20 problem

He ask me to post this pic. He gets multiple warnings in compiler, but he don't know meaning (me neither).
by ule
Thu Oct 27, 2022 5:46 pm
Forum: Flowcode V6
Topic: LCD 2x16 I2C backlight
Replies: 17
Views: 27673

Re: LCD 2x16 I2C backlight

@viktor_au: yours flowchart works in sim and hardware to. I only had to change i2c data line from C3 to C5. Thank you.
by ule
Wed Oct 26, 2022 10:17 pm
Forum: Flowcode V6
Topic: LCD 2x16 I2C backlight
Replies: 17
Views: 27673

Re: LCD 2x16 I2C backlight

Medelec35 chart does only blinking (1s-on/1s-off). I use this before for warnings, but in normal condition the lcd backlight was on. Now I want to backlight stay off until the button is pressed. I posted flowchart with this function in first post, but it only work in simulation mode.
by ule
Wed Oct 26, 2022 6:41 am
Forum: Flowcode V6
Topic: LCD 2x16 I2C backlight
Replies: 17
Views: 27673

Re: LCD 2x16 I2C backlight

Schematic of i2c backpack interface is something like this. I also tried different versions to turn it off via i2c, but with no success. It does blink, like @medelec35 wrote, otherwise it remain on.
by ule
Tue Oct 25, 2022 4:08 pm
Forum: Flowcode V6
Topic: LCD 2x16 I2C backlight
Replies: 17
Views: 27673

Re: LCD 2x16 I2C backlight

Jumper is in, but in settings tab i only see this
by ule
Mon Oct 24, 2022 12:36 pm
Forum: Flowcode V6
Topic: LCD 2x16 I2C backlight
Replies: 17
Views: 27673

LCD 2x16 I2C backlight

Hello

I wrote simple program to control backlight on LCD 2X16 I2C. In simulation everything works fine, but in real life not. Backlight is always on. Using arduino nano, push button connected on D2 pin, lcd using i2c in pins C4 and C5.
by ule
Mon Oct 17, 2022 9:25 pm
Forum: Flowcode V6
Topic: Arduino nano, multiple DS18B20 problem
Replies: 16
Views: 22741

Re: Arduino nano, multiple DS18B20 problem

Friend tried same program on Arduino Mega2560. Everything works. Even 7 sensors. Is it possible that nano is not capable of reading more than 5 sensors same time? He send me screenshots. When reading 5 sensors works ok, when connect 6th sensor, strange things happens. Something with rs232 maybe?
by ule
Tue Oct 11, 2022 12:18 pm
Forum: Flowcode V6
Topic: Arduino nano, multiple DS18B20 problem
Replies: 16
Views: 22741

Re: Arduino nano, multiple DS18B20 problem

Power is from arduino board.
by ule
Tue Oct 11, 2022 6:20 am
Forum: Flowcode V6
Topic: Arduino nano, multiple DS18B20 problem
Replies: 16
Views: 22741

Re: Arduino nano, multiple DS18B20 problem

"I can understand the thinking in having individual devices rather than a string. I don't have Flowcode on this machine to look at his code but from what I've read it is five sensors on whatever port(s) and all is good, but when a sixth is added they all stop working." Correct "Is it always the same...
by ule
Fri Oct 07, 2022 8:20 am
Forum: Flowcode V6
Topic: Arduino nano, multiple DS18B20 problem
Replies: 16
Views: 22741

Re: Arduino nano, multiple DS18B20 problem

Yes, he know how 1wire works, but he need to read ID of each sensor. If you have 1 sensor on 1port, you don't need ID. If one sensor stop working, you can simply replace with new one.
by ule
Tue Oct 04, 2022 10:42 am
Forum: Flowcode V6
Topic: Arduino nano, multiple DS18B20 problem
Replies: 16
Views: 22741

Arduino nano, multiple DS18B20 problem

Hello Friend of mine wants connect multiple sensors (DS18B20) to arduino nano via 1wire protocol. Each sensor is connected to different pin. If he connect 5 sensors (example: ports PC0 to PC4) everything works fine. If he connect another sensor (PC5), everything stops. He also tried other ports, or ...
by ule
Thu Feb 09, 2017 1:19 pm
Forum: General Programming
Topic: Low frequency PWM?
Replies: 3
Views: 4591

Re: Low frequency PWM?

Thank you for input. Yes, I saw that example. But I also find this topic, here on forum. The last two examples are very helpfull. I made it that way and I get pwm signal with 10Hz frequency.
by ule
Sun Feb 05, 2017 4:43 pm
Forum: General Programming
Topic: Low frequency PWM?
Replies: 3
Views: 4591

Low frequency PWM?

I'm testing some pwm program with pic 12F617. Everything works fine, but I wonder how to set frequency of pwm to 10Hz or less. If I set clock speed to 1MHz and prescaler divide to 16, I get only 61,03516 Hz.
by ule
Wed Jan 21, 2015 10:18 am
Forum: General Programming
Topic: Output?
Replies: 2
Views: 3949

Re: Output?

I did this. Working fine :D
by ule
Wed Jan 14, 2015 8:14 pm
Forum: General Programming
Topic: Output?
Replies: 2
Views: 3949

Output?

Hello First of all, sorry for my poor english :wink: I instaled flowcode v5 demo (picmicro). I wrote simple program with switch and 3 leds. When i start the simulation one led is blinking, if the switch is on, first led stop blinking and second start. Third led is only for indication if switch in on...