Search found 116 matches
- Mon Jun 28, 2021 4:32 pm
- Forum: Flowcode V8
- Topic: MAX31855 pin mapping
- Replies: 2
- Views: 2081
Re: MAX31855 pin mapping
When you're using SPI HW module in the controller, the module will dominate the MOSI, MISO, SCK pins. In this case, if you're not using MISO pin, you can use it as a digital input, but only as a digital input. The corresponding bit of the PORT register (in PIC microcontrollers) can be read and it wi...
- Wed Jun 16, 2021 6:14 pm
- Forum: Flowcode V8
- Topic: Who uses cheap 433Mhz modules?
- Replies: 12
- Views: 21117
Re: Who uses cheap 433Mhz modules?
jgu1, what is the solution? I didn't found it.
- Tue Jun 15, 2021 7:10 pm
- Forum: Flowcode V8
- Topic: Who uses cheap 433Mhz modules?
- Replies: 12
- Views: 21117
Re: Who uses cheap 433Mhz modules?
I've tested these RF modules and I can't recommend it. If the transmitter doesn't send any data or the transmitter input is in L state, the receiver output goes crazy. Receiver_output_1.jpg Receiver_output_2.jpg I have no idea, how they deal with this crazy signal in projects like this: https://rand...
- Sat May 15, 2021 5:25 pm
- Forum: Flowcode V7
- Topic: Controlling many outputs with 74HC595
- Replies: 7
- Views: 6490
Re: Controlling many outputs with 74HC595
Chaining is easy. If you can controll one 74595, you can controll lots of them. First, you have to decide, how many 595 meets you specification. One 595, one byte of data. Eg, you have three 595. First sent out byte goes to the last (3rd) 595, second goes to the middle (2nd) and the last sent out da...
- Tue Apr 27, 2021 6:08 pm
- Forum: Flowcode V8
- Topic: I2C master slave help please
- Replies: 3
- Views: 1724
Re: I2C
What is your I2C slave device? Be careful, different devices most of the times needs different type/sequence of commands.
- Thu Apr 15, 2021 6:44 pm
- Forum: Flowcode V8
- Topic: Interupts going mad with 18F46K22
- Replies: 3
- Views: 1975
Re: Interupts going mad with 18F46K22
Maybe there is a bug in the UART1 interrupt macro. To test it, create a new and small program.
For example, Timer1 interrupt flashing an LED on port RA0. If it's working, step forward. Timer1 and UART1 interrupt and test it again in real HW.
For example, Timer1 interrupt flashing an LED on port RA0. If it's working, step forward. Timer1 and UART1 interrupt and test it again in real HW.
- Sun Apr 04, 2021 7:23 pm
- Forum: General Programming
- Topic: Measure PIC's own battery voltage
- Replies: 18
- Views: 23675
Re: Measure PIC's own battery voltage
Sorry guys, forgot the example. Here it is, tested on real HW. Flowchart written in Flowcode v6 (I don't have newer), but you can find the required C codes in the report file.
- Fri Mar 19, 2021 8:39 pm
- Forum: Flowcode V5
- Topic: Identifying DS18x20 Sensor's with ROM Codes
- Replies: 6
- Views: 7182
Re: Identifying DS18x20 Sensor's with ROM Codes
If you know the ROM codes, there is no problem:
bus reset
match ROM
[send ROM code]
convert
...
The original problem:
bus reset
match ROM
[send ROM code]
convert
...
The original problem:
I could connected one sensor at a time, and register there rom code but there must be another way of doing this.
- Thu Mar 18, 2021 8:17 pm
- Forum: Flowcode V5
- Topic: Identifying DS18x20 Sensor's with ROM Codes
- Replies: 6
- Views: 7182
Re: Identifying DS18x20 Sensor's with ROM Codes
If you're smart enough, you can do it: https://www.maximintegrated.com/en/design/technical-documents/app-notes/1/187.html Please don't ask me anything about it, i don't understand how it's working (my primary language is not english)... Maybe the GetDeviceCount will help, but test it before using. O...
- Sun Mar 14, 2021 7:56 pm
- Forum: Flowcode V8
- Topic: 18F14K22 Timer question
- Replies: 10
- Views: 7235
Re: 18F14K22 Timer question
Try to use different controller, where Timer 1 extended with Gate Control. Eg.: PIC18F26K22, PIC16F1825. If you're using Gate Control in Single-pulse mode (see datasheet), you have to do only three things: set T1GGO bit, wait for measure complete, read TMR1H and TMR1L registers to get the time. Only...
- Fri Feb 05, 2021 2:30 pm
- Forum: General Programming
- Topic: RC5 component not working
- Replies: 17
- Views: 28737
Re: RC5 component not working
Hello!
Searc for: ir remote decoder module. eBay, Amazon, AliExpress etc.
Searc for: ir remote decoder module. eBay, Amazon, AliExpress etc.
- Fri Feb 05, 2021 9:52 am
- Forum: General Programming
- Topic: RC5 component not working
- Replies: 17
- Views: 28737
Re: RC5 component not working
If you know how UART (RS232) is working, try IR remote decoder module. Works fine and it has UART input and output. I've tested all IR remotes at home, it's sees all one of them.
- Tue Feb 02, 2021 3:22 pm
- Forum: General Programming
- Topic: Measure PIC's own battery voltage
- Replies: 18
- Views: 23675
Re: Measure PIC's own battery voltage
Today I've learned a new trick. :) Setup the ADC: Vref+: Vdd (AVdd) Vref-: Vss (AVss) Setup FVR to 1.024 V Measure FVR voltage by the ADC module. Because FVR is fixed, you can calculate the PIC's own voltage. Tested with PIC18F14K22, surprisingly accurate. Important! With this PIC, using 1.024 or 2....
- Fri Jan 08, 2021 8:31 am
- Forum: General Programming
- Topic: Measure PIC's own battery voltage
- Replies: 18
- Views: 23675
Re: Measure PIC's own battery voltage
Yes, you need a fixed reference. It can be external or if you choose another controller (eg. PIC12F1840), can be internal.
I don't recommend zener diode as a voltage reference, it's not stable.
I don't recommend zener diode as a voltage reference, it's not stable.
- Sun Dec 27, 2020 5:38 pm
- Forum: General Programming
- Topic: Built-in extended ASCII
- Replies: 4
- Views: 5537
Re: Built-in extended ASCII
It's not as simple as it looks. The first problem is the display itself. It' containing built-in charater set. Until today, I've seen three types: Code J.png Code E.png Code C.png Let's see Code E table, "É" character (top row, around middle). The datasheet says, binary code is HHLL LLLL = 0b1100000...
- Wed Dec 23, 2020 6:46 pm
- Forum: Flowcode V6
- Topic: Timer interrupt 1MHz
- Replies: 2
- Views: 4389
Re: Timer interrupt 1MHz
1 MHz interrupt is extremly frequent to handle it correctly and use the MCU to other tasks. You should use a PWM output or a dedicated oscillator circuit.
- Sun Dec 20, 2020 9:01 pm
- Forum: Flowcode V5
- Topic: Which PIC for LCD and 7 Segment Displays?
- Replies: 2
- Views: 4604
Re: Which PIC for LCD and 7 Segment Displays?
Hello! First, let me recommend some PIC microcontroller for the future. Programming language like Flowcode, is very easy of use and fast but there is a price for this, the end program (the .hex file) is larger. To handle this, you need microcontroller with larger memory regions (RAM & ROM). If you m...
- Thu Nov 12, 2020 5:34 pm
- Forum: Flowcode V8
- Topic: Interupt Question
- Replies: 3
- Views: 1957
Re: Interupt Question
The RS232 (UART) module is a dedicated module, controlled by the CPU. The CPU "tells" to the UART module to send a character and continues executing the program. The CPU can handle the interrupt during UART data transfer while the UART module is still transmitting or receiving the data. Same results...
- Thu Nov 05, 2020 11:09 pm
- Forum: Flowcode V6
- Topic: Using FFT_test.fcfx
- Replies: 59
- Views: 53777
Re: Using FFT_test.fcfx
Hello! No, there is no option to measure negative voltage via simple microcontrollers, without extra analogue components. You can get negative results, if the controller have special ADC. Eg. PIC18FxxK80 family have differential ADC. The ADC module (optionally) have two inputs, positive and negative...
- Tue Sep 15, 2020 7:28 pm
- Forum: Flowcode V8
- Topic: ARRAYS in supplementary code
- Replies: 8
- Views: 3203
Re: ARRAYS in supplementary code
Maybe:
Code: Select all
const rom unsigned char BATTERY4[]={
0xFF , 0x8F , 0x00, //LED 1 ORANGE
0xFF , 0x8F , 0x00, //LED 2 ORANGE
0xFF , 0x8F , 0x00, //LED 3 ORANGE
0x00 , 0x00 , 0x00, //LED 4 OFF
0x00 , 0x00 , 0x00}; //LED 5 OFF
- Tue Sep 15, 2020 6:07 pm
- Forum: Flowcode V5
- Topic: Conversion rules float to/from unsigned integer
- Replies: 10
- Views: 12406
Re: Conversion rules float to/from unsigned integer
Don't use FLOAT, you don't need it. If you have a number what is needed to be increment or decrement by 0.1, multiply everything by 10. In this case, 1004 means 100.4 You have to make some tricks only if you want to display it as a Float. x=1004 (the original number, means 100.4) y=x mod 10 (y will ...
- Mon Sep 14, 2020 4:08 pm
- Forum: Flowcode V8
- Topic: Forum problem
- Replies: 3
- Views: 1785
Re: Forum problem
Working, thank you!
- Mon Sep 14, 2020 4:06 pm
- Forum: User Components
- Topic: DFPlayer mp3 player
- Replies: 12
- Views: 7450
Re: DFPlayer mp3 player
Sorry, i've forgotten an important thing, what is helped for me:
- Mon Sep 14, 2020 11:38 am
- Forum: Flowcode V8
- Topic: Forum problem
- Replies: 3
- Views: 1785
Forum problem
Hello!
Sorry to post here, didn't find suitable topic.
Can't delete private messages, got "The submitted form was invalid. Try submitting again." message from the forum engine.
Sorry to post here, didn't find suitable topic.
Can't delete private messages, got "The submitted form was invalid. Try submitting again." message from the forum engine.
- Sun Sep 13, 2020 8:35 pm
- Forum: Flowcode V7
- Topic: help with data logging shield v 1.0
- Replies: 2
- Views: 4746
Re: help with data logging shield v 1.0
Try to search for "openlog module", the easiest way to make data logger. You need only UART (RS232) communication, everything else is made by the module.