Forum Sains Indonesia




*

Artikel Sains

Aku Cinta ForSa

ForSa on FB  ForSa on Twitter

Pranala Luar

ShoutBox!

Last 10 Shouts:

dhea252

Agustus 19, 2016, 11:20:05 AM
Very good idea you've shared here, from here I can be a very valuable new experience. all things that are here will I make the source of reference, thank you friends.
http://obatambeien.tasikstore.com/
http://obatambeien.healthylifeindonesia.com/
http://obatambeien.bestagaric.web.id/
http://obat

dhea252

Agustus 19, 2016, 11:19:44 AM
Thanks for sharing, success always
http://obatambeien.tasikstore.com/

kez0223

Agustus 18, 2016, 09:14:36 AM
Thanks for sharing, success always

http://obatkolesterol.healthylifeindonesia.com/

kez0223

Agustus 18, 2016, 09:14:11 AM

kez0223

Agustus 18, 2016, 09:13:27 AM
The information is so exciting, very enjoyable to be listened

http://obatkolesterol.best-agaric.net/
http://obatkolesterol.best-agaric.com/

kez0223

Agustus 18, 2016, 09:12:56 AM
It is interesting to read, I hope the future is much better


http://obatkolesterol.agaricpro.info/
http://obatkolesterol.agaricpro.net/

kez0223

Agustus 18, 2016, 09:12:19 AM
Wow, I like the way you design this web... It's so beautiful.

http://obatkolesterol.agaricpro.biz/
http://obatkolesterol.agaricpro.org/

kez0223

Agustus 18, 2016, 09:11:35 AM

auzyouchen

Agustus 03, 2016, 09:53:07 AM
selamat pagi
Kutip

agaricback

Juli 29, 2016, 08:43:47 AM
ada hukum archimedes yang dimana masanya berkurang karena adanya udara..
http://goo.gl/aXAJAC | http://goo.gl/4nts9p | http://goo.gl/SqrQc0 | http://goo.gl/H4YOdC |

Show 50 latest

Penulis Topik: Pemograman Bascom Avr dengan modem wavecom  (Dibaca 2149 kali)

0 Anggota dan 1 Pengunjung sedang melihat topik ini.

Offline yahya

  • Siswa Baru
  • *
  • Tulisan: 1
  • IQ: 0
  • ForSa!
    • Lihat Profil
Pemograman Bascom Avr dengan modem wavecom
« pada: Juni 01, 2013, 08:55:12 AM »
[ask] saya buat program dengan bascom avr, tapi saat dijalankan alatnya, smsnya nggak terkirim kenapa ya program saya yang salah atau rangkaian saya..??
Neh kodingnya :

$regfile = "8535def.dat"
$crystal = 8000000
$baud = 9600                                                '19200

$lib "lcd4.lbx"

Dim D As Byte
Dim C As String * 30
Dim S As String * 15
Dim T As String * 10
Dim I As Integer
Dim A As Integer
Dim M As Integer


Declare Sub Alarm
Config Portc.1 = Output                                     'kontak motor
Config Portc.0 = Output                                     'alarm


Config Lcdpin = Pin , Db4 = Portb.4 , Db5 = Portb.5 , Db6 = Portb.6 , Db7 = Portb.7 , E = Portb.2 , Rs = Portb.0
Config Lcd = 16 * 2

Config Adc = Single , Prescaler = Auto , Reference = Avcc
Start Adc



Cls
Lcd "Alarm Kendaraan"
Lowerline
Lcd "Terkoneksi HP"
Wait 1


Do
   Gosub Baca
   If I <= 550 And A <= 370 And M <= 490 Then
   Goto Kirim
   Goto Tampilan
   Goto Alarm
     Else
   Gosub Baca
   Portc.0 = 0
   Portc.1 = 0
   End If
Loop
End


Tampilan:
Cls
Locate 1 , 2 : Lcd "Peringatan"
Wait 1


Kirim:
Cursor Off
Cls
Lcd "Kirim SMS"
Waitms 500
Print "AT+CMGS=";
'--no HP penerima--
Print "081266402959"
Waitms 500
'--isi SMS----
Print "Peringatan";
Print Chr(26)
Wait 1
Cls
Lcd "SMS terkirim"
Wait 1



Alarm:
Portc.1 = 1
Portc.0 = 1
Waitms 100
Portc.1 = 0
Waitms 300
Portc.0 = 0


Baca:
I = Getadc(0)
A = Getadc(1)
M = Getadc(2)
Cls
Locate 1 , 1 : Lcd "X="
Locate 1 , 8 : Lcd "Y="
Locate 2 , 1 : Lcd "Z="
Locate 1 , 3 : Lcd I
Locate 1 , 10 : Lcd A
Locate 2 , 3 : Lcd M
Waitms 500
Return



 

Topik Terkait

  Subyek / Dimulai oleh Jawaban Tulisan terakhir
0 Jawaban
4502 Dilihat
Tulisan terakhir Maret 19, 2010, 10:17:32 PM
oleh peb
2 Jawaban
4963 Dilihat
Tulisan terakhir November 08, 2011, 04:29:59 PM
oleh Eko Budianto
0 Jawaban
3333 Dilihat
Tulisan terakhir April 06, 2013, 07:35:45 PM
oleh caturpermadi
0 Jawaban
1438 Dilihat
Tulisan terakhir April 22, 2013, 08:02:24 PM
oleh a_die
0 Jawaban
1617 Dilihat
Tulisan terakhir Pebruari 05, 2014, 07:58:17 PM
oleh NUGRAHA1

Copyright © 2006-2014 Forum Sains Indonesia