Posts

Showing posts from April, 2014

Concatenate to a char array / converting integers?

hello! recently started playing st7565 lcd screen using adafruit's library - still uses char arrays strings. plan screen use output debug info, problem trying build 1 long string out of variables have strewn about. i've been kind of bad @ concat'ing strings together, char arrays whole other beast of frustration me. here's i'm trying do: i have 3 variables - var1, var2, var3 what want send display "variable 1: (var1)  variable 2: (var2)  variable 3: (var3)" char array. any tips? quote i have 3 variables - var1, var2, var3 and types of variables are..? Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > Concatenate to a char array / converting integers? arduino

Passing Text to function

hi. is there simpel way of passing text , function? i have; temp=getresponse("text terminal user "); char getresponse(char text) the getresponse sending text serial output, waits serial input, , should return whatever arrives @ serial until lf. thanks in advance or tips. regards svein.. char* text Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > Passing Text to function arduino

Appearance of news items in a category. - Joomla! Forum - community, help and support

hi how can change appearance of news in category? my news section: http://www.askerfilmklubb.net/joomla/in ... &itemid=34 i have more space between news , want headline/title , introduction text visible in category. is controlled template or how category shows items? i'm not sure if i'm being clear. problem understandable? hope can me. to intro text displayed read more link main text need createa blog type page in menu manager | menuname | new (button). probably best way tweak spacing in template_css.css.  view source to, find text needs tweaking , css declaration formats it. if not want give bit more info. cheers Board index Joomla! Older Version Support Joomla! 1.0 Administration - 1.0.x

Raspberry Pi Forums - Login

username: password: i forgot password resend activation email remember me hide online status session   register in order login must registered. registering takes few moments gives increased capabilities. board administrator may grant additional permissions registered users. before register please ensure familiar our terms of use , related policies. please ensure read forum rules navigate around board. terms of use | privacy policy register raspberrypi

*WAVEFORM AUDIO OSCILLATOR'S AMPLITUDE*

[font=georgia] hello, i'm new board , believe the question ask quite simple one. after building stand-alone waveform audio oscillator coul manipulate frequency of wave throught potentiometer connected board, now, take the next step. in first oscillator amplitude of wave was controlled regular pre-amplifier. the hardware solution. this time change amplitude of the signal using potentiometer connected to 1 of board's analog inputs. the code using available at shaduzlabsdotcom and must download the arduinosc library run it. here code:        #include <arduinosc.h>                void setup(void){          arduinosc::initosc(waveform_sine);          arduinosc::setoscfrequency(note_a4);        }      void loop(){      } i open suggestion! thanks yout attention![/font] ...

How do I do this?

Image
how make program switch between 2 leds everytime switch hit? how make switch between 2 leds every other time switch hit? you program take @ button , led libraries. apply if-else es , counter. good luck :] Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > How do I do this? arduino

RISC OS User Group Of London - Raspberry Pi Forums

Image
at next monthly meeting of rougol on monday 19th november having play official release version of risc os raspberry pi. chance new risc os ask questions , pick tips more experienced users. meeting takes place few minutes walk london bridge station, easy of south east england. entrance free, , drinks , curry plentiful more info on website: http://www.rougol.jellybaby.net/ bryan. raspberrypi

Undocumented syntax

hi i've seen in forum , elsewhere several syntax constructs couldn't find anywhere in reference or extended pages like:  admux = b01100110;  adcsrb = b00000000;  adcsra = b11001111;  isr(adc_vect) { ... };  tccr5b |= (1<<wgm53)| (1<<cs50);  ocr5a = 0x063f;  isr(timer5_compa_vect) {...};  .... where can learn kind of statements? documented somewhere? thanks in advanced. the syntax standard c - you're looking @ references internal registers (and control bits) of avr processor. if need ask question, best leave stuff alone while. Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > Undocumented syntax arduino

Thread: Make a WEP Network not require a keyring unlock?

Image
whenever turn on computer, asks me password unlock keyring can connect network protected wep. how disable requirement keyring don't have put password in connect each time? posted pwncakes193 whenever turn on computer, asks me password unlock keyring can connect network protected wep. how disable requirement keyring don't have put password in connect each time? open system -> preferences -> network connections , select "wireless" tab. select connection , press edit . make sure available users entry (next "cancel") checked. press apply. reboot, , shouldn't ask password anymore Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] Make a WEP Network not require a keyring unlock? Ubuntu

Serial.read into integer - syntax migration probs

hello! this first code. know little of other languages mel , as2, here, there tricks gotta used to. the simple code: the idea send number(id) via serial, , arduino recognize integer , work around number. by far have this code: [select] int id = 0; void setup(){  serial.begin(9600); } void loop(){     id = serial.read() - '0';       for(int i=0; i<id ; i++){     serial.print(i);     serial.print(", id: ");     serial.println(id,dec);     } } which prints, if send 8: 0, id: 8 1, id: 8 2, id: 8 3, id: 8 4, id: 8 5, id: 8 6, id: 8 7, id: 8 i can, then, use <id> integer , ok. but when send number greater 1 digit(12, 145...), messes of course. in short, i'd know how convert data incoming via serial integer.  if send (12, "12", not "1" + "2"). there other issues thought easier solve, syntax won't let me move further. lots of old examples including libraries out of date, , little lost... thanks in ...

Thread: squid strange client connection

hi! i'm running squid , implemented delay pools 192.168.0.0 192.168.1.0 , 192.168.2.0 networks. use sqstat monitor live squid connections. of client connections following delay pool's bandwidth limit except 1 connection registered 127.0.0.1 , not governed delay pools because it's eating bandwidth. i'm sure on network , not squid server downloading. happening? how can inspect , fix this? i found out squid logs connection application/octet-stream type, not directly using squid. workaround made trap ports 1024-65535 (well, these ports safest based on research) , redirected squid's port 3128. actual ip address of connection coming registering in sqstat . Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms [ubuntu] squid strange client connection Ubuntu

2 LEDs fading in and out at the same time?

i have general question in order code correctly given following case: -      there 2 leds driven separately -      the leds "fade in" 0,5sec , "fade out" 2 sec -      each lamp activated pushbutton theoretically following usage happen: -      led 1 activated -      led 1 deactivated -      while led1 "fade out" occurs, lamp 2 activated i know how code fade out/ fade in feature. how connect in way fade in , fade out happens @ same time?  [smiley=huh.gif] there couple of pins can pwm driven. can control them separately , in way achieving independent dimming of both leds. Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > 2 LEDs fading in and out at the same tim...

Thread: help to make cccam

Image
any new ubuntu user hello try day make cccam server on ubuntu 9.04 trying folders in var shows access denied . im using puppy linux , can ther make file in folder bat hear ubnutu no access ther same way how make folders in var , have open access them time ,, thank ubuntu users if 1 have ubuntu cccam server can thank you can create directories , move files using sudo command eg: code: sudo mkdir /usr/local/test and code: sudo mv file1 /usr/local/test Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] help to make cccam Ubuntu

Multiple DW IDE Instances

not sure topic fall under... we use dw edit independant html files. is possible launch separate instances of dw ide each file? instead of opening files inside single dw ide. thanks try , find out. be sure let know how goes. "kscap" <webforumsuser@macromedia.com> wrote in message news:f2ci7b$gjg$1@forums.macromedia.com... > not sure topic fall under... > > use dw edit independant html files. > possible launch separate instances of dw ide each file? > instead of opening files inside single dw ide. > > > More discussions in Dreamweaver extensions adobe

Thread: l7 filter and iptables error in ubuntu 8.1

hi need please. try install l7 filter in ubuntu 8.10 intrepid ibex kernel 2.6.27-7-generic , iptables version 1.4.0. read manual find in jpcozar qos page , tell must follow steps: layer7 l7-filter kernel wget http://downloads.sourceforge.net/l7-...7-v2.20.tar.gz l7-filter userpace wget http://downloads.sourceforge.net/l7-...ce-0.10.tar.gz l7 descarga de definiciones de protocolos wget http://downloads.sourceforge.net/l7-...8-12-18.tar.gz iptables descarga de iptables (versión 1.4.2) wget http://www.netfilter.org/projects/ip...-1.4.2.tar.bz2 kernel 2.6.27.7 descarga del kernel sudo apt-get install linux-source parcheo y recompilación del kernel instalar l7-filter y los fuentes del kernel tar -xvf /usr/src/linux-source-2.6.27.tar.bz2ln -s /usr/src/linux-source-2.6.27 /usr/src/linuxtar -xvf netfilter-layer7-v2.20.tar.gz aplicar el parche las fuentes del kernel cd /usr/src/linuxpatch -p1 < ../netfi...

ISO C++ error....

when try compile code error: in function 'void loop()': error: iso c++ forbids comparison between pointer , integer how fix it? this code: quote /* danga signals mk1 made on boarduino v2.0 will adapted use on custom board see jpegs layout follows: */ int redpin = 9; int redon; int orangepin = 10; int orangeon; int greenpin = 11; int greenon; int switchpin = 12; int laston = 0; int laston2 = 0; void setup(){  pinmode(redpin, output);  pinmode(orangepin, output);  pinmode(greenpin, output);  pinmode(switchpin, input);  redon = 1;  digitalwrite(redpin, high);  laston = 0; } void loop(){  if (switchpin == high){   if (laston == "0"){    digitalwrite(redpin, low);    digitalwrite(orangepin, high);    laston = laston2;    //offyet();   }   else{    digitalwrite(greenpinpin, low);    digitalwrite(orangepin, high);    laston = laston2...

Simple Digital I/O Program and Optimization

Image
hey all.. long time reader, first time poster. i searched forums briefly, didn't find relevant problem. have simple program turns led on when high signal found on separate input signal pin. here code: code: [select] int ledpin = 13;                              /* led on pin 13         */ int sigpin = 8;                                /* input on pin 8         */ void setup() {  pinmode(ledpin, output);            /* digital pin output */  pinmode(sigpin, input);               /* digital input pin       */ } void loop() {  digitalwrite(ledpin, low);            /* turn off led           */    /* if receive (high) signal, tur...

ms access output,input to arduino?

Image
can output ms access used input variable programming of arduino? i have communication between ms access , arduino. if record found @ database of ms access, send "command" or "signal" arduino activate motor open door. please help.. you need: one program on pc read data access database , write command onto (virtual) serial port connected arduino. visualbasic, vb.net or other language microsoft , languages windows pc offer necessary functions write kind of program. one program on arduino read command serial port , want do. @ tutorial involving serial.read() example how done. one usb-cable link arduino pc. that's all. writing simple programs left you. scope, it's nice beginner project teach programming. i'm glad you. korman Arduino Forum > Forum 2005-2010 (read only) > Software > Interfacing ...

Some tips I wrote about RoboHelp

hi, here's link information wrote few years ago, in case it's still useful anybody. covers removal of "powered robohelp" logo (permanently , globally), , few other tips. http://www.info-action.com.au/resources.html (last link on page) i developed these solutions in x3 , haven't tried them on subsequent versions. it's quite still work there doesn't seem have been change in robohelp architecture since then. regards colin dawson More discussions in WebHelp adobe

Color question (Pantone to PDF)

this more of adobe distiller question, i'll ask anyways... i whipped logo design client , love it. eyeballed on-screen colors , told them they'll have sit down pantone swatch book , pick specific colors want use. they ended matching swatches on-screen colors picked , that's used. i created pdf (press optimized) of said fh file. colors completely different on-screen (though, obviously, correct pantone colors , long printer isn't idiot, they'll fine on t-shirts). the question have why on-screen matched pantone colors not match on screen when used? -darrel as requested darrel, here best answer question. (i didn't answer before because i'm not 100% able answer facts , typically leave people are.) the colors not matching because applications render colors differently. can open same pdf in acrobat 4 , 8 well preview , 3 different color schemes. each program has it's own method of rendering colors on screen. transfer same pdf else's ...

Arduino+Flash blink.fla not working. Help!

Image
i'm having lots of difficulty interfacing flash cs3 arduino duemilanove. here's i've downloaded: serproxy-0.1.4.win32.zip as3glue_v2_beta2.zip arduino-0017.zip here's did: 1. edited serproxy.cfg: newlines_to_nils=true comm_ports=23 comm_baud=9600 comm_databits=8 comm_stopbits=1 comm_parity=none timeout=300 net_port23=5331 2. flashed duemilanove using arduino-0017 firmata included in as3glue_v2_beta2.zip: as3glue_v2_beta2\glue\arduino\firmata2\standardfirmata 3. copied as3glue_v2_beta2\glue\as3\net  to  as3glue_v2_beta2\glue\examples\arduino\blink 4. ran blink.fla in flash cs3 , modified actionscript line in code: var arduino:arduino = new arduino("127.0.0.1", 5331); 5. serprox running in background following status: serproxy - (c)1999 stefano busti, (c)2005 david a. mellis - waiting clients 6. when test movie, serprox spits out following: server thread launched server(23) - thread started 7. blink.fla movie says following: waiting firmata firmware ve...

3D Printer - Raspberry Pi Forums

okay guys im making 3d printer using dlp projector , uv curable resin. thats easy , know how want use raspberry pi send images projector , @ same time control stepper motor, how go doing cause im new raspberry pi , python kind of good. ps. image has show 10 secs stop move motor , show next image in sequence , on, without other ui visible through projector , controlling motor in background @ once, possible? are using full dlp projector or dlp module? raspberrypi

Flash Video Control Bar

hello, recently decided use flash couple elements of webpage made friend. nav bar , short video clip of on home page. i found out needed use swfobject.js user didnt have click once activate nav bar using on website. i have 2 issues. 1. when encoded video in flash selected 1 of pre-packaged control bars (so user can control basic functions). published html , .swf. html works when use dreamweaver insert .swf not carry on control bar. have tried pulling on control bar .swf , placing under video file huge object imported bunch of controls not work (bunch of controls = play/pause/etc). 2. via dreamweaver asked if wanted add basic control bar, did , seems work (however 1 picked in flash). second issue this; user still has click once on video use controls... know doing wrong on video file? site: http://www.joniypc.com thanks million! still not finding answers anywhere, have suggestion? More discussions in Adobe Animate CC - General adobe

Thread: passwd doesn't work on Kubuntu 8.10

[kubuntu 8.10 kernel 2.6.27-7 generic] morning, i'm trying change 'l0327' user password via passwd, , i'm not able succeed. firstly, provide new password 10 characters, different previous 1 last character. message "bad: new password must different old one" then, want quit , repeatedly press 'enter'. odd "updated successfully" message appear: "no password supplied enter new unix password: retype new unix password: no password supplied passwd: password updated successfully l0327@rafaelw-desktop:~$" in end, password isn't changed @ all. thank in advance , information. rafael w. ---- passwd on kubuntu does work - you're not using correctly. ubuntu (and kubuntu) version of passwd has rules passwords can generated. example, new password can't "too short" (at least 7 characters think), cannot palindrome (a word...

Problem with Javascript or Permissions? - Joomla! Forum - community, help and support

hi everyone: i installed  joomla 1.04 on apache server (hosted hosting company).  seem have problem though had when tried out "mambo."  everything seems work ok (adding modules, components, moving around admin section, etc.). the problem:  when try change category name, edit existing faq/page, not able click "save" or "apply" button (in  fact have use button on browser proceed. buttons "hightlight" thats it.  notice if click edit previous post (that came program), never see text "edit" it, 2 blank boxes. can't change titles, categories, edit text, etc. have installed several of components/modules (including tinymce). i checked both dreamweaver 8, cuteftp, , beyond compare 2 make sure latest files (and of them) on server. also, joomla says permissions set ok.  trying make changes "super admin." lastly, able use joomla demo these things (so think know how it). here url if makes difference:  http://www.therobertsconservato...

Gallery? - Joomla! Forum - community, help and support

Image
hello! i didnt  used joomla  , worked mambo 2 years ago, profs opinion gallerys: what gallery prefer? gallery have less bugs? gallery more flexible? kind of gallery there: http://www.joomlashack.com/tips_and_faq ... llery.html thanks million! im no expert use zoom gallery , far good.  no bugs or anything, , handles videos pretty well. Board index Joomla! Older Version Support Joomla! 1.0 Extensions - 1.0.x Components

Breaking up a project in classes / files

hi, i'm trying break larger project multiple files. read understand have create libraries this. right that? in processing i'm used adding tab , creating class, doesn't seem work in arduino? new tab creates new pde file default arduino seems useless since won't import classes tabs main project seems. i have tried create library using h , cpp files. problem seems library doesn't compile because depends on other libraries. don't know how solve this. for testing created empty project uses myclass. myclass uses messenger. sketch includes first created myclass.h , myclass.cpp , placed them next sketch. sketch includes myclass.h file. with approach error: 23: error: messenger.h: no such file or director apparently code trying compile include path not set same way main sketch? then try put 2 myclass files in folder same name inside hardware/libraries/ folder. when this, , try compile get: /applications/arduino.app/contents/resources/java/hardware/libraries/myc...

problem with font array FONT6x8[97][8]

a have procedure lcdputchar. in run time, can not read array element values. void lcdputchar(char c, int x, int y, int size, int fcolor, int bcolor) {    int cc;  int indx = int(c)-33;      //serial.println(c);  for (int r=0; r<8; r ++)  {   int rchar = font6x8[indx][r];   serial.println(rchar );  } } -------------------------------------- unsigned char font6x8[97][8] = { {0x06,0x08,0x08,0x00,0x00,0x00,0x00,0x00}, // columns, rows, num_bytes_per_char {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}, // space 0x20 {0x20,0x20,0x20,0x20,0x20,0x00,0x20,0x00}, // ! {0x50,0x50,0x50,0x00,0x00,0x00,0x00,0x00}, // " {0x50,0x50,0xf8,0x50,0xf8,0x50,0x50,0x00}, // # {0x20,0x78,0xa0,0x70,0x28,0xf0,0x20,0x00}, // $ {0xc0,0xc8,0x10,0x20,0x40,0x98,0x18,0x00}, // % .............................................. ...........................

help with serial text recognition

hey everybody! i'm starting experiment serial inputs arduino, , right project i'm trying enter string in serial monitor , have arduino recognize it. can array (fairly efficiently think) , shove string (successfully?), when compare assembled string "known" string not return true. i've tried trimming off whitespace, , number returned string.length matches desired "known" string. doing wrong? thanks! code: [select] char serin[20]; //var hold bytes in read serialbuffer string string1 = ""; string name = "paul"; string stringtrimmed = ""; void setup() {    serial.begin(19200); } void loop () {  for(int i=0; <20; i++){    serin[i] = ' ';  }  string1 = "";  //int choice1 = 0;  //int choice2 = 0;  //int choice3 = 0;  //int choice4 = 0;  boolean input1 = false;  //boolean input2 = false;  //boolean input3 = false;  //boolean input4 = false;  serial.println("please enter user na...

map analogRead to voltage value

if there way/method/formula convert analogread value voltage value? think use 'map' function conversion. so guess i'm wondering if analog digital converter accurate enough this? i'm assuming value of 1023 5v? 511 2.5v? ect... i want know input voltage value of piezo element when 'tap' or 'knock' on it. thanks yes map function say. if mapped 0-1023 counts 0-5 each count represent 4.9 millivolts. there couple of methods better (higher) resolution if attempting measure low in voltage obtain decent readings. first wire stable lower voltage analog reference pin on avr chip , set software activate external reference voltage. other method utilize op amps amplify lower voltage ranges 5vdc maximum input voltage. measuring pizo's output voltage may challenge generates small ac voltage , without rectification , amplification not useful measurement. lefty Arduino Forum > ...

IE audio sync issue

ok figured out ie not responding right. ff plays audio fine , in same sync want. ie plays same swf out of sync. audio goes way fast , runs out before want to. publishing .swf flash 5 format. ghergich, > test scene , audo in perfect sync want. > publish swf , out of sync. finishes way before > supposed to. can tell me why?>\ sounds you've put audio keyframe hand , set sync property (in property inspector) event rather stream. david stiller adobe community expert dev blog, http://www.quip.net/blog/ "luck residue of design." More discussions in Adobe Animate CC - General adobe

button to open html page

ok putting portfolio , want people see images larger on site. thinking make image button , have open html window (a popup) see larger version. proper way or there better sugguestions out there? if way way can let me know how this? first flash site, if want check out have complete version on web emoney thanks, erik ejsmojo wrote: > ok putting portfolio , want people see images > larger on site. thinking make image > button , have open html window (a popup) see larger version. > proper way or there better sugguestions out there? if > way way can let me know how this? first > flash site, if want check out have complete version on > web http://www.emoneydesigns.com it's approach, can stick it. myself not different. to open predefine pop window need kind of action attached button: on (release) { geturl("javascript:n_name=window.open('image.html','window1','width=350,height=250');void( 0);"); } suggest placing imag...

Trouble with Debounce tutorial

i'm working through debounce tutorial @ http://arduino.cc/en/tutorial/debounce. code included in examples in arduino 0018 environment. my understanding of sketch should toggle led (switch on off, or vice versa) when button pushed. the description says, "this example demonstrates use of pushbutton switch: each time press button, led (or whatever) turned on (if it's off) or off (if on)." i traced through code line line , tried understand how increment (is right term?) led's state, looked me code turn led on when button pushed , turn off when button released, not toggle output state of led pin. here's code: [select] /* debounce each time input pin goes low high (e.g. because of push-button press), output pin toggled low high or high low.  there's minimum delay between toggles debounce circuit (i.e. ignore noise).   circuit: * led attached pin 13 ground * pushbutton attached pin 2 +5v * 10k resistor attached pin 2 ground * note: on ardui...

USB usage - Raspberry Pi Forums

Image
ok, many people confused usb power supplies use thought create topic in troubleshooting section on usbs use pi. please give usb using works pi people know use. post type of plug , username topic. please post answers in form: brand: (samsung, apple etc) voltage: (this 5v) ma: (at least 700ma) if not know voltage or how many amps plug supplies, should in little box on plug itself. i update topic every week, thank you! ...or use wiki: http://elinux.org/rpi_verifiedperiphera ... r_adapters raspberrypi

turring off part of a code with a switch?

can turn off (and on) parts of code switch? not trigger event, enable event triggered. basically want "comment out" few lines push of button bring them in loop push. for example, original state of line: code: [select]  if(sample4.uniquepress()){    midi.sendnoteon(69,127,1);      delay (150);    midi.sendnoteoff(69,0,1);        } then push of button have turn act this: code: [select] //  if(sample4.uniquepress()){ //    midi.sendnoteon(69,127,1);   //    delay (150); //    midi.sendnoteoff(69,0,1);   //      } then on next push have revert original state. i know commenting out not way achieve it, how want behave. there must way, haven't been able head around how make happen. just count occurences of event want, , trigger on, say, numbers. Arduino Forum > Forum 2005-2010 (read only) > Software ...

Using internal clock pulse for ISR?

Image
hi all, i newbie both arduino & c programming. i trying figure out how use internal 16mhz clock pulse run counter, run isr 100 times/second. i assume there command & have been scouring net hours trying find such animal, no avail. can point me in right direction? lots of ways of doing it, 100hz pretty slow - why need interrupt? (i don't want put off, interrupts tricky beasts, , best reserved fast events). Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > Using internal clock pulse for ISR? arduino

SD card does not appear in Windows Explorer - Raspberry Pi Forums

problem: have bought empty 8gb "integral" sd card maplins. have inserted sd reader slot of packard bell computer (bought 2003, runs windows xp). green light appears @ side of reader, there no indication of card being present in windows explorer. have installed "win32diskimagerbinary", when pull down "device" option, there grey box. cannot load on "wheezy raspian" operating system. have 256mb sd card camera not appear in explorer. have done wrong? might problem computer old? beginner @ sort of thing. many in advance advice. windows xp , computer plenty new enough sd cards. if 1 camera still works in camera i'd sd card reader in computer dead. raspberrypi

Code help

Image
hi: i´m writing first code arduino. in project need receive vb program in pc data configure 1 int variable. i´ll using after in counter. data preceded char ('w') , need separate char rest.ex: 'w100'-> need separate 'w' char int 100 because variable setting must asume value. i couldn´t find example in libraries,forum or site. can me? thanks lot to value pc want use serial interface, take @ 1 of example programs (most of ones under communications use serial) how use it.  you need set vb program use serial interface on computer. for character manipulation can compare character received waiting for, i.e.: code: [select] const int max_size = 5; //max number of digits in number char num[max_size]; loop() {    if(serial.available() && serial.read() == 'w') //wait w    {        int = 0;        while(serial.available())        {            num[i] = serial.read...

Adding ON/OFF control & temp display to PID SCRIPT

hey playing of pid scripts , arduino. i've got hooked 2 things, heater heat set temp , thermocouple take readings , adjust accordingly. my questions script... i've  got following  script uploaded board: /******************************************************** * pid simple example * reading analog input 0 control analog pwm output 3 ********************************************************/ #include <pid_beta6.h> //define variables we'll connecting to double setpoint, input, output; //specify links , initial tuning parameters pid mypid(&input, &output, &setpoint, 2,5,1); void setup() {  //initialize variables we're linked to  input = analogread(0);  setpoint = 150;    //turn pid on  mypid.setmode(auto);  mypid.setsampletime(250);  mypid.settunings(2,3,1);   } void loop() {  input = analogread(0);  mypid.compute();  analogwrite(3,output); } now, when board t...

complete _mc before onRollOver event

i've been working on as2 project create smooth animated roll on buttons. key design concept swf make sure of animations run end if there new mouse event. so far working fine long don't roll on button initiated _mc before animation completes. i've tried bunch of if (grn_btn.onrollover = true , grn_mc still playaing){don'tplay.grn_mc again until ends } statements can't find works. (* code written in english can figure out i'm trying do) attached working code far. i'd appreciate guidance. More discussions in ActionScript 1 and 2 adobe

LCD and Shairport - Raspberry Pi Forums

hi, ive set pi shairport running service, streaming music phone pi. im looking @ adding small lcd pi show song that's playing , artist. ive seen on here few people on forum have connected small lcd pannels , got them working im not sure how id make lcd display title/ artist of song? kind of display looking @ this: http://adafruit.com/products/399 put shairport on pi followed tutorial: http://tomsolari.id.au/post/27169019561 ... spberry-pi im looking @ purchasing gertboard when become available again may connecting display? thanks, appreciate help! for lcd used both adafruit's tutorial: http://learn.adafruit.com/drive-a-16x2- ... spberry-pi , matt's tutorial: http://www.raspberrypi-spy.co.uk/2012/0 ... ng-python/ between 2 of them managed, ended using matt's code worked better me. raspberrypi

Why is analogRead() returning zero all the time?

hi all, i'm doing stupid here i've been @ hour , brain hurts. if can, please shed little sanity! problem is, analogread() returning 0 on both pins i'm using, if *deliberately* remove sensor attached pin , supply voltage. the code designed work maxbotix ez1 sonars (in case you're wondering!). thanks! code: [select] int sonarwarmupdelay = 250;             // ms delay after powerup before first reading available int sonardelaybetweenpings = 25;       // ms wait between readings int sonarreadings = 5;              // number of readings obtain (and average) pad results // configure power output #define totalsonars 2                  // total number of sonar sensors being polled int pwr[] = { 6, 7 };                  // power pins int son[] = { 1, 0 };           ...

SD Cards? - Raspberry Pi Forums

hi, sd cards compatible raspberry pi model b 512mb? can normal 4gb sd cardi model b micro sd card (with adapter make normal sized) 32gb or sdhd card 32gb ones compatible raspberry pi model b 512mb? thank responses in theory card of 32gb if sdhc card of class 10 or less should compatible. pi can picky in no obvious pattern can case of try card. having said have 20+ sd cards in variety of sizes, class , manufacturer , work fine me. raspberrypi

Raspberry Pi Forums - Login

username: password: i forgot password resend activation email remember me hide online status session   register in order login must registered. registering takes few moments gives increased capabilities. board administrator may grant additional permissions registered users. before register please ensure familiar our terms of use , related policies. please ensure read forum rules navigate around board. terms of use | privacy policy register raspberrypi

Serial Port not receiving data. PLEASE HELP!!

hi all, i having bit of problem receiving data serial port (pin 0&1). trying communicate external modem (telit). did connect arduino (rx) modem (tx) , arduino (tx) modem (rx).  when connect modem pc, works fine modem responding ok , able send sms. can connect modem pin 0&1 , still use usb write debug messages? , can please point me in correct direction? thanks in advance! pieter some code tried not working.   code: [select] #include <liquidcrystal.h> liquidcrystal lcd(12, 11, 5, 4, 3, 2); int incomingbyte = 0; #define inlength 16 #define interminator 13 char instring[inlength+1]; int incount; int = 0; void setup(){  // initialize lcd  lcd.begin(16, 2);  lcd.clear();  lcd.setcursor(0, 0);  lcd.print("lcd startup");  // initialize serial port  serial.begin(115200);  delay(5000);  serial.println("at+cmgf=1");  lcd.setcursor(0, 1);  lcd.print("initialize done....

Cannot get Processing working

i think isn't best place ask this, cant find forum processing in processing home-page, there goes, running ubuntu 9.10 , have downloaded latest version of processing, un-archieved it, , when click in processing file opens file(the 1 lot of bash code, , called processing) going terminal says "processing: command not found". any ideas this? quote when click in processing file opens file(the 1 lot of bash code, , called processing) click in file? bash code? there should executable called processing.exe double click start processing application. Arduino Forum > Forum 2005-2010 (read only) > Software > Interfacing > Cannot get Processing working arduino