seen from United States
seen from United States

seen from United States
seen from China

seen from France
seen from China
seen from United Kingdom
seen from Argentina
seen from China

seen from Malaysia

seen from United Kingdom
seen from Belarus

seen from France

seen from United States

seen from Türkiye

seen from Malaysia

seen from Kuwait
seen from United States

seen from Netherlands
seen from China
Alarm unit for limit switches or flow switches
Have you ever faced the frustration of dealing with an overflowing tank or a pump running dry? These unexpected events can result in costly damage and inconvenience. A reliable floater switch alarm system can provide early warnings, allowing you to take prompt action and prevent further issues. This project guides you through building a do-it-yourself floater switch alarm system using a PIC12F508 microcontroller.
The circuit for this project is relatively simple and requires very few components. The system is designed to operate with a 12V DC power supply and utilizes a 230V AC buzzer unit for audible alerts.
The circuit includes a mute function that allows you to temporarily silence the alarm for a specified duration. Additionally, a built-in timeout mechanism ensures continuous alarm activation if the floater switch remains closed for an extended period, indicating a potential emergency. This project is suitable for various applications, including home or industrial monitoring, and environmental monitoring.
The firmware for the microcontroller will control the operation of the alarm system. It should perform the following tasks:
Monitor the floater switch: Continuously read the input pin from the floater switch.
Activate the alarm: If the floater switch detects a change in water level (e.g., rising water), activate the buzzer or alarm.
Mute function: Allow the user to temporarily mute the alarm by pressing a button.
Timeouts: If the alarm remains active for an extended period, it may indicate a serious issue.
The firmware for this project is developed using the MPLAB X IDE and the XC8 C compiler. The latest firmware source code is available in the firmware directory of the project repository. The compiled firmware is also available in the release section of the project repository.
To protect the electronic components from moisture and other environmental factors, it is recommended to enclose the system in a waterproof enclosure. In our prototype build, we use an 100mm × 68mm × 50mm project enclosure to mount this controller.
This is an open hardware project. All the project firmware source code, design files, and compiled binaries are available on the GitHub project page.
Tutorial for Blinking a Simple LED using PIC18F2550 microcontroller using XC8 Compiler. This simple tutorial includes two different source codes showing basic ways to program a PIC18F2550 . The source code can be easily modified for C18 Compiler. The project files and source codes are free to download.
http://www.rakeshmondal.info/PIC18F2550-XC8-Tutorial-Blinking-led
ワーニング
PICマイコンのワーニング
warning: mismatched comparison
先ほどプログラムで出ていたのに気付かず、割り込みのおかしな動作にずっと悩んでいました。コンパイルの結果をみても、文字数の関係で結果だけみるとワーニングが消えてていたため、気付くのが遅れた。
注意:
しっかりとコンパイル画面は見ておこう (それかWindowを大きくとる)
内容:
unsigned char g_cnt=0;
途中省きます・・・
if(g_cnt>500)
なんか初歩的なミスが多いなぁ(汗
ワーニングはしっかりと無くしましょ~
Mplab X IDE is the latest avatar of MPLAB IDE which is much more advance from the older versions. The tutorial here shows some of the key features and advantage of Mplab X with XC8 Compiler and a sample code for blinking a led on a PIC18F4550 microcontroller. The tutorial here also shows a comparison between the output files (.hex) in between the new and old versions of MPLAB IDE.
In this tutorial we will see some basic and advanced features and benfits while coding with Mplab X over the traditional Mplab IDE. With a Sample source code at the end of this post I will also show a comparison of the output hex files generated with Mplab IDE and Mplab X IDE.
http://www.rakeshmondal.info/Mplab-X-IDE-XC8-Tutorial-Blinking-LED
What a great X90 Cresta
☆ Break Ito Style ☆
http://www.gt-1.com/