Home
User Manual
Contents
1. ek E 5 2 E Eu Sp ae p ao cs cio m m ERD oo Sint as ce m oo E A WW csMsomo WII ccu moe ZS PORRA MONOS 1 mmt em TAE Y no SIM Card Socket x RE R q SimPLC JPZ 9 X www dizzy co za male e i Diez R39 D13 R33 D14 R34 D15 R35 D16 R36 D17 R37 EEE NN EEE ae W HR H a oce e O D m S 0 o N o OO OO 98 160 8 6 8 10 8 160 0 50 OF com 9 T A a Y lt O o O O O O O 0 0 O O O O O O O com Rad E 5 Ojo o o o o o o ojo o o o o o ox ee o 00 98 O O O O 8 O 0 Of 0 0 oo J30 BER Jae J33 J34 Jas J36 BER so e NOO CMO NCO NO1 CM1 NC1 NO2 CM2 NC2 NOS CM3 NC3 NO4 CM4 NG4 NOS GMS NCS NOS CMB NOS NO7 CM7 NCZ Links The SimPLC Is designed by Dizzy Enterprises www dizzy co za Is designed in the Proteus Design Suite www labcenter com Features two mikroBus sockets www mikroe com Features the SIM900 module http wm sim com producten aspx id 1019 www dizzy co za Page 15 of 17 Microcontroller VO Map MCU Default Alternative Notes Pin Connection Connection RAO mikroBUS1 RX RA1 mikroBUS1 TX RA2 mikroBUS1 AN RA3 mikroBUS1 RST RA5 mikroBUS1 PWM RA6 mikroBUS2 RST X1 MCU Ext Osc RA7 mikroBUS2 CS X1 MCU Ext Osc RBO mikroBUS1 INT RB1 mikroBUS2 AN RB2 mikroBUS2 RX RB3 mikroBUS2 TX RB4 mikroBUS SCK SCL
2. iiim EI 81 J TTT T FCC ID UDU 031214200909 ce 0980 8 2 Power Supply Se SimPLc WWW dizzy Go www miknoa cor TS R35 Dre FSS oct i User Manual DIZZY 4 enterprises uge CU UI AAA no RO 4 Overview Tos aaa 5 Power pl E O eee 6 Allee eene E a Aann 7 Real Time Calendar and Clock THILL 7 Reset ELMO japa ASS 7 Oscillator a NEU PERO 7 salit NM T mE 7 IESELEN 8 Bootloade EE 8 SIM900 SV EEN 9 IR 9 SINMSGO MOdullez Rm 9 Powering ZE pd iain Eee g Power and signal Jneieaticihiasa niente S Hari RE 9 COMMUNICALION ET 10 Speaker and Microphone Connectors terrent ite cai 10 o e LE o s sus O sau asun sas uanuusussaususu E ka 11 y CO Oo M Te Iw sia ie riam eet 13 puts and OUTPUTS APA A OR GEO OC E 14 IDC10 Headers A dd 14 il o Ia aa v A E TST ternan 14 E 15 DOE A 15 Ey cease wah cells ada dd 15 Microcontroller O Map eee ee ee re ee 16 Beg ML T 17 www dizzy co za Page 2 of 17 www dizzy co za Page 3 of 17 Introduction The SimPLC is a compact and cost effective platform which is targeted at remote control monitoring applications lt includes the following features Relays Upto 8 relays rated at 16A 250VAC allow external devices such as lights pumps security devices etc to be switched on and off G MZ GPRS Communication The SIM900 GSM GPRS module provides a convenient means of wireless communication to f
3. is connected to the MCLR pin of the microcontroller Depressing this button will place the microcontroller in a state of reset Note The reset button will not work if the MCLR function has been disabled on the PIC by programming it with the relevant configuration setting Oscillator Socket The Breeze comes programmed to run from the PIC s internal oscillator An external oscillator socket X1 with 22pF capacitors is however provided should you wish to connect an external oscillator The oscillator socket is connected the PIC s PortA 6 CLKO and PortA 7 CLKI pins Schematic The schematic for the microcontroller 32 768kHz RTCC oscillator and reset button is detailed below PIC_RAO O RAQO ANO C1INA ULPWU PMAG RPORCO T1OSO T1CKI RP11 PIC RCO PIC RA1 RA1 AN1 C2INA PMAT RP1 RC1 T10SI UOE RP12 PIC_RC1 JP6 PIC MCLR PIC RA2 O RA2 AN2 VREF CVREF C2INB RC2 AN 1 CTPLS RP13 JUMPER2 vec PIC_RA3 RA3 AN3 VREF C1INB RC4 D VM USB_D PIC RAS RA5 AN4 SS1 HLVDIN RCV RP2 RC5 D VP USB_D e PIC_RA6 O RA6 CLKO OSC2 RC6 PMAS TX1 CK1 RP17 GSM_RX e E g PIC RA7 RATICLKI OSC1 RC7 PMA4 RX1 DT1 SDO1 RP18 GSM_TX o o a a PIC_RBO O RBO AN12 INTO RP3 RDO PMDO SCL2 PIC_RDO R21 R22 PIC_RB1 RB1 AN10 PMBE RTCC RP4 RD1 PMD1 SDA2 PIC_RD1 o X2 10k 1k PIC_RB2 RB2 AN8 CTEDG1 PMA3 VMO REFO RP5 RD2 PMD2 RP19 PIC_RD2 o T PIC RB3 O RB3 AN9 CTEDG2 PMA2 VPO RP6 RD3 PMD3 RP20 PIC_RD3 3 PIC RB4 O RB4 PMA1 KBI0 SCK1 SCL1 RP7 RD4 PMD4 RP21 PIC_RD4 2 P
4. microcontroller 5 Click the Begin uploading button Your code will be loaded onto the SimPLC www dizzy co za Page 8 of 17 SIM900 GSM GPRS Module Overview 1 SIM900 GSM GPRS module 2 SIM Card socket 3 Pwr_Key button used to manually power the module on and off SMA antenna connector Status power and signal LEDs asi Debugging header TOUT 1 HINH GSM TX protection bypass jumper ml No os SIM900 Module For more information on the SIM900 including datasheets and AT commande please see http wm sim com producten aspx id 1019 Powering On Off The Pwr_Key button can be used to manually switch the SIM900 module on or off by pressing YX and holding it for 1 second From the microcontroller the same effect can be achieved by switching PortE O high for 1 second and then switching it low again Note that the module may take a few seconds to power down It can also be powered down either normally or urgently using the AT CPOWD command please see the AT Command Manual available from the SimPLC page on our website In the case that the module is not responding to either the Pwr Key input or AT CPOWD commands the Reset input can be used to reset it by switching PortE 1 high for at least 50uS and then switching it low again If the SIM900 detects an under voltage condition such as if the board is not being supplied with enough power then it will automatically power off Pow
5. of the microcontroller 7 mikroBus socket 1 8 mikroBus socket 2 9 mikroProg and PICkit programming connectors 10 miniUSB connector and supporting circuitry www dizzy co za Revision 1 1 Page 5 of 17 Power Circuitry The schematic for the SimPLC s power circuitry is detailed below U3 vec LM2576 SS c2 1000uF 12V Input Only The power circuitry is centred around a LM2576 ADJ buck converter which is configured to provide a 3 6V supply to the board By powering the board on 3 6V the need for a separate power supply for the SIM900 GSM GPRS module is eliminated and the voltage is still within the operating range of the PIC1 8F46J50 microcontroller Both DC jack and screw terminal connectors are available for supplying power to the board From the connectors power passes through a 2A fuse and optional polarity protecting diode before arriving at the LM2576 ADu The polarity protection diode can be bypassed using jumper JP1 for situations where minimum power consumption is required The input voltage is used directly to activate the relays on the board and is this required to be 12V DC If the relays are not however being used then the input voltage can be in the range of 5V 40V DC The input voltage is made available for measurement by the microcontroller by passing it through a voltage divider which reduces it by approximately 77 e g 18V would be reduced to approximately 2 8V The
6. IC_RB5 RB5 PMAO KBI1 SDI1 SDA1 RP8 RD5 PMD5 RP22 PIC_RD5 32 768kHz VCC PIC RB6 RB6 KBI2 PGC RP9 RD6 PMD6 RP23 PIC_RD6 po PIC_RB7 RB7 KBI3 PGD RP10 RD7 PMD7 RP24 PIC_RD7 C12 C13 B 12 5pF 12 5pF rum PIC VCAP O VDDCORENCAP REO ANS PMRD GSM_PWR_KEY VUSB RE1 AN6 PMWR GSM_RESET PIC_MCLR MCLR RE2 AN7 PMCS lt GSM_STAT E PIC18F46J50 PT www dizzy co za Page 7 of 17 The SimPLC comes pre programmed with a bootloader meaning that no external programmer is needed in order to use the board It is however possible to use an external programmer if desired with connectors provided for both the mikroProg and PICkit programmers VCC Power VSYS as YES E GND Ground OV 2 PGD PGC E PGC Program Clock RB6 O GND PGD 0 PGD Program Data RB7 n vec VER Y VPP Programming Voltage E The VPP pin on the PIC is also VPP GND its MCLR reset pin Bootloader To use the bootloader on the SimPLC 1 Download the mikroElektronika USB HID bootloader software from the SimPLC page on our website Run the software 2 Connect your SimPLC to the computer via a USB cable 3 When the USB symbol next to the 1 Wait for USB link text in the bootloader application turns red click the Connect button If you don t manage to click the button within the 5 second window period then press the Reset button on the SimPLC and try again 4 Click the Browse for Hex button and locate the hex file which you wish to load onto the
7. RB5 mikroBUS SDI SDA RB6 mikroBUS SDO PGC RB7 mikroBUS1 CS PGD RCO X2 MCU RTCC Osc RC1 X2 MCU RTCC Osc RC2 BattV GSM Sig JP6 RC4 USB D RC5 USB D RC6 GSM RX RC7 GSM TX RDO RelayO RD1 Relay1 RD2 Relay2 RD3 Relay3 RD4 Relay4 RD5 Relay5 RD6 mikroBUS2 PWM Relay6 JP8 RD7 mikroBUS2 INT Relay7 JP9 Also JP2 U3 shutdown REO GSM Pwr_Key RE1 GSM Reset RE2 GSM Status Note JP3 JP4 can be used to cut power to the relays whilst leaving their LEDs working JP7 can be used to disable both the relays and their LEDs Ports A B and D are also exposed via IDC10 headers J20 J21 and J22 www dizzy co za Page 16 of 17 Disclaimer This part says that you cannot sue us because we accept no responsibility for any damages whatsoever that may be caused in connection with our products We ve designed them the best we can but please use your common sense www dizzy co za Page 17 of 17
8. ble by certain equipment e g MAX3232 connected to the debugging header the JP5 jumper can be used to bypass the protection thus allowing the aforementioned equipment to function properly Speaker and Microphone Connectors Both screw terminal and 3 5mm jack connectors are provided for speaker audio output and microphone audio input www dizzy co za Page 10 of 17 Schematic 36 36 64 OL cla N3339 031 a Hei 0L 8H ely O S mm o ao mis O 30 Oca SOA ZW MOOTEL 9r 3Q T1OH QVO WIS vr EI Ltd an18 a31 va ivis Wso O eW MOO 181 Ar A VNNALNY WSS V jexoog uiug g 006INIS ZINMd TLOIdO LAMA LLOIdO axa 980 OLOIdO ax osa LO9 601d9 so asia Z99 801d9 200 dei IEX ZOIdO viva asia vOSM 90ld5 X19 dsia Osgx sOld9 snivis VHEPM VOIdO 1H I113N Zu8x EOIdo 10s E Y8N ZOIdD vas vH8x LOIdo 10 WIS l3S3HN VIVO WIS AIN UMA 1Sy Wis axa aan WIS axl 3SN3S33d WIS S19 d AdS sly N dS uid TNIANIT qoq M MIND E N OIN oav d SIN 1X3 00A 1NV JH ZOOLNZ 99 co 13534 NS9 S19 We SI Wee HL Weg H qo uso II Weg 1X3 aa wso Em anol O vO 99 z ZOOLNZ LO 9 L U we we gral tia fm A o sadanr r E 401 NOLLNd E Sdf Lo ZIM Sly LMS e o 2 x xu uso O Page 11 of 17 Www dizzy co za The SimPLC features up to 8 relays rated at 1GA 250VAC connected to PortD of the mic
9. er and Signal Indication The Status LED indicates whether the module is powered up or not This is also provided as an input to the microcontroller on PortE 2 The Signal LED indicates by blinking at differently timed intervals whether the module has signal or not The different intervals are indicated below Constant Off SIMSOO is not running 64ms On 800ms Off SIM900 is not registered on the GSM network 64ms On 3000ms Off SIM900 is successfully registered on the GSM network 64ms On 300ms Off SIM900 has established GPRS communication www dizzy co za Page 9 of 17 This is also provided as an input to the microcontroller on PortC e if jumper JP6 is in the GSM Sig position please also see the Power Supply section of this manual for more information Network status can also be interrogated using the AT CREG command please see the AT Command Manual available from the SimPLC page on our website Communication The SIM900 communicates via a UART RX TX connection 8600bps by default connected to the microcontroller s UART 1 RX TX pins using AT commands The AT Command Manual is available from the SimPLC page on our website The debugging header can be used to spy on UART serial communication taking place between the microcontroller and the SIMSOO It can also be used to communicate directly with the SIM900 Due to the protection measures in place reception of the GSM TX communications may not be possi
10. is manual If no power supply is available at the power inputs of the board then the board will draw power from the USB connection and it is thus possible to also power the board via the 5V USB supply jumper JP3 should be disconnected in this case in order to disable the 12V relays Note however that the SIM900 GSM GPRS module may require more power than the USB connection is able to supply please see the Power Supply section of this manual Drawing power from the USB connection is protected by a 1A resettable fuse on the board an C D R mM AN Minus ay 2 O m ac D3D4 REN O Dale e e e 025 e Sei Eech H e 0 e wl y Sig stat asr intro e BST INTO o o La i o mmm RASO e e e e FE RAS RD7 a d e Buil leis axel le es axle a B nn m BB75 5 A nat RAZ 21111 ABE ya E E oo mi e sc lt A TO e sc lt TX e cal zc RB4 310 mikroProg RAI BA Fue Te RBA FUI wl mw t e Miso 344 Pick sclle ejyso EE EE cce R10 R11 Ba Ras HB elvos ee Sie elt y e EE Gus R56 EG R56 O ave Nc e e ave ave o Sle esmrx swD mikroBUS Gcno e O cuo simsoo Gsumx 779 Lp al e jRES o EHEN E CR a O mummum om nm Om RAS ll fall bl rec pos n Om z po A cm OW ol am X o LEE ELE H reel DN RAZ
11. of mikroElektkronika www mikroe com click add on accessory boards to be connected to the system There are currently over 50 click boards and counting performing a vast variety of functions E T MIRTA E such as communication storage E Ges audio etc eig d TA gt pb Most notably OPTO click boards can be used to add up to 8 opto CS coupled inputs to the SimPLC s 4 The mikroBus connections are explained in greater detail below Opto click AN Analogue Pulse Width Modulation PWM RST Reset different from the PIC s reset Interrupt INT CS SPI Chip Select UART Serial Receive RX SCK SPI Serial Clock UART Serial Transmit TX MISO SPI Master Out Slave In SDI on the PIC 2C Serial Clock SCL MOS SPI Master In Slave Out SDO on the PIC PC Serial Data SDA 3 3V 3 3V Power Supply SV Power Supply 5V GND Ground OV Power Supply Ground OV Power Supply GND Serial Peripheral Interface communication interface Inter Integrated Circuit communication interface PIC RAS PIC RB1 PIC RD6 PIC RBO PIC RA6 PIC RD7 PIC RAO PIC RA7 PIC RB2 PIC RA1 PIC RB3 PIC RB4 PIC RB4 PIC RB5 PIC RB5 MIKROBUS www dizzy co za Page 14 of 17 USB The PIC18F46J50 microcontroller includes built in USB and a miniUSB connector is included on the SimPLC in order to take advantage of this The board also comes pre loaded with a fast USB HID bootloader please see the Programming section of th
12. rocontroller The relays are driven through a ULN2803 Darlington transistor array Each relay has a normally open NO normally closed NC and common CM connection available An LED is connected to each relay in order to indicate whether or not it is activated Relays RL16 and RL1 7 are disabled by default This is because PortD 6 are PortD 7 may also be used elsewhere on the board PortD 6 may be used as the PWM connection in mikroBus socket 2 PortD 7 may be used as the INT connection in mikroBus socket 2 lt may also optionally be used to shut down the LM2576 ADu switching regulator please see the Power Supply section of this manual for more information By connecting jumpers JP8 and JPY relays RL16 and RL1 7 respectively will be enabled It is possible to temporarily disable the relays by disconnecting jumper JP3 found in the Power Supply section of the board The LEDs will however continue to operate normally This can be a useful feature during the development phase of your project It also means that the input voltage to the board does not need to be 12V DC but can be in the range of SV 40V DC It is also possible to power the board directly from the USB connection in this state please note however that the SIM900 module may require more current at times than what can be provided by the USB connection which will cause it to automatically power down If required it is also possible to completely disable both
13. rom the board RTCC Real Time Calendar and Clock The PIC18F46J50 microcontroller features a built in RTCC real time calendar and clock allowing you to perform tasks at set dates times Inputs and Outputs Two mikroElektronika www mikroe com mikroBus sockets allow the functionality of the system to be easily extended by plugging in any of a huge range of click accessory boards One application of this is to add up to 8 opto coupled inputs to the board using OPTO click boards Ports A B and D are also exposed via IDC10 headers on the right hand side of the board providing convenient access to any free inputs outputs mikroElektronika IDC10 type accessory boards can also be plugged into these headers USB The PIC18F46J50 microcontroller also features built in USB including USB On The Go and the board includes a miniUSB connector in order to take advantage of this This feature could be used to configure the board and or for in field firmware updates via the pre programmed USB bootloader www dizzy co za Page 4 of 17 n O YIN Te B CC 10 Uno e Mali ce 0980 E m ER gt presao eloo oloo o o o oloo q 1 Power supply circuitry 2 PIC18F46J50 microcontroller and supporting circuitry 3 SIM900 GSM GPRS module and supporting circuitry 4 Speaker and microphone connectors for SIM900 GSM GPRS module 5 Upto 8 relays 6 IDC10 connectors exposing Port A B and D
14. the relays and LEDs by disconnecting jumper JP7 This jumper is found next to the ULN2803 and completely disables it www dizzy co za Page 12 of 17 Schematic EIN NOOTAL EINHOOTAL EINHOOTAL EIN NOOTAL EINHOOTAL EINHOOTAL eW MOOTEL eW MOOTEL er ger Ser ver cer cer Ler oer o00 o00 o00 o00 000 000 o00 o00 ZLOG BrZ THZO Ss TH ZLOQ BrZ TH2O vi TH cVOG gave THCo cLOG gre THco cLod ave Taco 0118 CY Y A RENS eee EEN qau a31 OO EEGEN das asi aas aa qau a31 OO 4a 91d sia via ELO cia LLG OLA ET ED ED ET xL xL ET ET JE OCH seu FC ceu ceu Ley DEA amas O 9 Avi38 O sau old O ray old O O caw old O SOU old O tax old O caw old W At ATH AZL uz Agen ATS AZL M3dWnr _ M3dWnr _ ONS 08z2N1n dN et e Zax Id O a O J AVIS ogzN1n dee dr o 6dr e en ug Aejay usdwnr M3dwnr infoja anloj ON E08ZNIN e sadanr i o e gay old O oO 9 ANEN Zdf 9 cr 00000000 EPP SEO OSOS ATS AL ND ZRDDADAD 8655000909 von ONO Page 13 of 17 www dizzy co za Inputs and Outputs IDC 10 Headers Ports A B and D are exposed via IDC10 headers on the right hand PO P1 side of the SimPLC These headers expose the 8 pins of the port as P2 P3 well as power and ground note that PortA is missing pin 4 They are P4 P5 also compatible with mikroElektronika www mikroe com IDC10 P6 P7 accessory boards VCC GND mikroBus Sockets The mikroBus sockets allow a huge variety
15. voltage is made available on PortC 2 of the microcontroller provided that jumper JP6 is in the default position please also see the Microcontroller section of this manual for more information For applications where minimum power consumption during standby is of importance it is possible to control the LM2576 ADJ switch it on and off using PortD 7 of the microcontroller by changing jumper JP2 to the RD7 position note that PortD 7 may also be used for Relay RL17 or the INT pin on mikroBus socket 2 Jumper JP3 although found in the power supply section of the board is covered in the Relays section of this manual For powering the board via USB please see the USB section of this manual www dizzy co za Page 6 of 17 Niagara ls The microcontroller used on the SimPLC is the PIC18F46J50 The PIC18F46J50 features 64KB of program memory and 3776B of SRAM Approximately 6800B of program memory are used by the USB HID bootloader Operating frequency up to 48MHz 12MIPS For more information on the PIC18F46J50 please download its datasheet from http ww microchip com downloads en DeviceDoc 3993 1d pdf Real Time Calendar and Clock RTCO The PIC1 8F46J50 features a built in RTCC and a 32 768kHz crystal X2 as well as two 12pF capacitors are connected to the PIC s PortC O T1OSCO and PortC 1 T10SCI pins in order to facilitate the accurate operation of this peripheral Reset Button A tactile switch SW
Download Pdf Manuals
Related Search
Related Contents
T11-RD1 Silvercrest Model M-12 Floor Plan Copyright © All rights reserved.
Failed to retrieve file