Posts

Showing posts from June, 2015

Inexplicable serial problem

Image
hey, guys, i'm faced problem can not seem take care of - or find what's causing it. basically there's 1 arduino sending serially string !a18 , other arduino (this one) receiving it. here's second arduino's code: code: [select] /* * temperature , humidity server * version 1.0a * pedro tome' * * how works: * basically, 1 master arduino receives data * various slave arduinos have temperature * , humidity sensors, uploaded to * pachube.com account. * * code for: * slave :: temperature , humidity */ /* temperature sensor's pre-commands */ #include <onewire.h> onewire  ds(7);  // temperature sensor's pin 2 (output) connected arduino's pin d7 /* humidity sensor's pre-commands */ int humsensor_pin = 0;  // humidity sensor's pin 2 (output) connected arduino's pin a0 float max_voltage = 3.27;  // humidity sensor's output when: 100% humidity @ 0Âșc float zeropercentvoltage = 0.8;  // humidity sensor's output when:...

How to stop loop

i have a dfrobot arduino , want motors to run within amount of time put in loop loop never stops.  how can make stop? int e1 = 5; //m1 speed control int e2 = 6; //m2 speed control int m1 = 4; //m1 direction control int m2 = 7; //m1 direction control void setup(){ int i; for(i=0;i<=9;i++) { analogwrite (e1,100); //pwm speed control digitalwrite(m1,high); analogwrite (e2,100); digitalwrite(m2,high); } } void loop(){ } read how blinky without delays work, use time of desired duration , stops being executed. Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > How to stop loop arduino

multiple conditions

i curious, have controller needs @ status of 3 inputs give me go or no go. i planning nest if statements, looking @ if statements using && operator. can like: if(door1 == high && door2 == high && door3 ==high) { go this } yes.  or this... if ( door1 && door2 && door3 ) Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > multiple conditions arduino

code issues.

Image
i'm new programming, i'm trying write code uses button select program run. issue i'm having when delay value high program times not register button change.  it can hit or miss. thankful help. here code, sorry it's messy. code: [select] // constants won't change. they're used here set pin numbers: int buttonpin1 = 7;     // number of pushbutton pin int buttonpin2 = 6; int counter = 0; //counter 1 int analogpin1 = 0; // select input pin potentiometer int pin13 = 13;    // select pin led int pin9 = 9; int pin10 = 10; int pin11 = 11; int sensorvalue;  // variable store value coming sensor int mappedval; // variables change: int buttonstate1;        // variable reading pushbutton status int buttonstate2; int lastbuttonstate1; int val9 = 0;       // variable holds current led brightness int delayval = 0;  // variable holds current delay time int val10 = 0;       // variable holds current led brightness int delayval2 = 0;  // variable holds c...

preload swf on web page

i know there javascripts preload images, swf movie. don't mean preloader, script preload movie since it's large file? hi mike far have seen preloader works best informing viewer file being loaded. if use dreamweaver has preload feature wold not bog down page? here code dw produces inside flash player: <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="300" height="225" title="map" onfocus="mm_preloadimages('/flashfiles/canadaen.swf')"> <param name="movie" value="/flashfiles/canadaen.swf" /> <param name="quality" value="high" /> <embed src="/flashfiles/canadaen.swf" quality="high" pluginspage=" http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="300...

Error Running c# App with Mono - Raspberry Pi Forums

after hours of trying work, have decided it's time post. have c# windows forms application quite basic, , can complie , run fine on windows. whole project designed work on pi though, moved project on , compiled. after couple of hours of getting compile (foundout had reference mysql.data.dll file) compiled no errors! run code: select all mono administration.exe , got huge error, can find little online: code: select all pi@raspberrypi /media/wayneio/pi/projectnibiru/projectnibiru $ mono administration.exe stacktrace: @ system.drawing.font.createfont (string,single,system.drawing.fontstyle,system.drawing.graphicsunit,byte,bool) <0x00143> @ system.drawing.font..ctor (string,single,system.drawing.fontstyle,system.drawing.graphicsunit,byte,bool) <0x0007f> @ system.drawing.font..ctor (string,single,string) <0x00057> @ (wrapper remoting-invoke-with-check) system.drawing.font..ctor (string,single,string) <0xffffffff> @ system.drawing.systemfonts.get...

Double check switch state. Help !

hi, i trying build sms sender(via websire) backup pager rescue team. works ! example: pager has relay in charging base closes switch 5 secs when pager goes off. connected arduino digital pin. ethernet shield visits url (get request) problem sensitive , arduino sends message itself. think have debounced correctly. i hoping test switch closed, pause 2 seconds test again if still closed before sending message. could me that. appreciated. here have working. - sensitive. (using 1k pull down resistor) #include <ethernet.h> byte mac[] = { 55e, 05, 055e, 055f, 55fe, 55d }; byte ip[] = { 15, 555, 555, 555 }; byte gateway[] = { 555, 555, 5, 555 }; byte subnet[] = { 555, 55, 555,555 }; byte server[] = { 555, 555, 555, 555 }; // these changed security reasons client client(server, 80); void setup() {  pinmode(4, input);  ethernet.begin(mac, ip, gateway, subnet);    serial.begin(9600);    delay(1000);    serial.println(...

No me funciona Intro text - Joomla! Forum - community, help and support

hola buenas todos, tengo un problema ya que no me va bien lo de el texto con intro y salen los articulos publicados integramente en frontpage en la pagina principal, le dado parametros y hide en intro text como vi en otro post y nada no funciona cambiado el editor de tiny no wsywing y tampoco funciona, ya nos e que hacer ver si alguien puede orientarme, tengo ezine pero tampoco va. hola, yo probĂ© ese mĂłdulo y terminĂ© escribiendo uno propio, para obtener el introtext de contenido para una categorĂ­a dada. // params $category_id  =  intval( $params->get( 'category_id', 20 ) ); $count =  intval( $params->get( 'count', 20 ) ); // collect data // assemble query $now = date( 'y-m-d h:i:s', time() + $mosconfig_offset * 3600 ); $query = "select a.title cat_title, b.title title, b.introtext intro, c.title sec_title,b.images images " . "\n #__categories a, #__content b, #__sections c" . "\n a.id='$category_id' " . "\n , b...

Is my project legal/fair? - Raspberry Pi Forums

hi, client wants me design system him. needs few devices act electronic locks in buildings around country , wants ability control devices through internet. behind doors closed locks services or other goods clients pay for. after send example paypal payment, lock opens. he's going buy boards , other necessary components, job write program. legal , fair use raspberries in devices? want make sure before send answer client. he's not going sell devices or make money directly on them. paid things behind door. you can use them choose. have bought them, yours. couldn't use term "doors secured raspberry pi" without permission think name trademarked. raspberrypi

New to accelerometer code, a few questions?

Image
hi, have seen couple of accelerometer tuts, , more or less using based going. i have modified suit accelerometer , add output serial monitoring values. i have accelerometer mounted on 'tube' on pvc.. mimic final 'mounting' orientation , use. with wire/cable going arduino duemilanove per circuit outline in sketch comments: code: [select] /* accelerometer: de-accm3d [buffered 3d accelerometer] http://www.dimensionengineering.com/de-accm3d.htm original code: http://www.arduino.cc/en/tutorial/adxl3xx created: 07.02.08 (by david a. mellis) modified 06.13.10 (by jerry dugan) the circuit: analog 1: z-axis analog 2: y-axis analog 3: x-axis analog 4: ground analog 5: vcc example code in public domain. */ // these constants describe pins. won't change: const int groundpin = 18;             // analog input pin 4 -- ground const int powerpin = 19;              // analog input pin 5 -- voltage const int xpin = 3; ...

arduino randomly resets

hello i in progress of creating own present box , since person present see topic hope can me without me telling name problem in code arduino resets after 1 or more loops of main loop :s i dont know why tried implementing more delays didnt maybe overloading memory buffer clears dont know i think code pretty commented , pretty simple the servo code disabled , not cause problem (i think) any welcome , sorry if in wrong category i thinking maybe power problem i have connected pc more sufficient power i have gps module using 40ma , lcd 4x16 display , uv led between 13 , ground there no servo connected. i dont think but.. maybe if guys dont have problems it code: [select] #include "lb_gps.h" #include <liquidcrystal.h> #include <servo.h> liquidcrystal lcd(5, 6, 7, 10, 11, 12); servo myservo; int buffclear(); int agrclear(); int servo(int x); int lcdprint(char* x, int y); char arguments[15][11]; int ledpin = 13; char* nosats; char inbuffer[100]; // setup void se...

help a poor beginner

i have arduino romeo 1 elektro motor , ask if point me how can make code 2 motors requiered 1.what trying achieve when  press on keyboard or d motor rotate left or right failed make work here sample code sample code: int e1 = 5;     //m1 speed control int e2 = 6;     //m2 speed control int m1 = 4;    //m1 direction control int m2 = 7;    //m1 direction control void stop(void)                    //stop digitalwrite(e1,low);              digitalwrite(e2,low);              }     void advance(char a,char b)          //move forward        {          analogwrite (e1,a);      //pwm speed control          digitalwrite(m1,high);              analogwrite (e2,b);              digitalwrite(m2,high);        }   void back_off (char a,char b)          //move backward        {          analogwrite (e1,a);          digitalwrite(m1,low);              analogwrite (e2,b);              digitalwrite(m2,low); } void turn_l (char a,char b)             //turn l...

How can i merge 8 variables to 1;

Image
hi , nice meet you first of sorry bad english secondly hopw can me problem. i need merge 8 bits 1 varaible. for example. i have "temp" variables each 1 stores 1 or 0 digitalreading arduino pins: int temp[7]; byte mybinary; temp[0] = digitalread(pin1); //1 example temp[1] = digitalread(pin2); //0 example temp[2] = digitalread(pin3); //1 example temp[3] = digitalread(pin4); //0 example temp[4] = digitalread(pin5); //1 example temp[5] = digitalread(pin6); //0 example temp[6] = digitalread(pin7); //1 example temp[7] = digitalread(pin8); //0 example how can merge these values (from temp) "mybinary" variable; all want "mybinary" variable  store "10101010" value this mybinary=10101010 or mybinary=b10101010 i tried mybinary=temp[0] & temp[1] &..... &temp[7] didtnt work please me try mybinary=temp[0] | (temp[1] << 1) | (temp[2] << 2) | (temp[3] << 3)  and on 7 ...

phpBB user mambot installation - Joomla! Forum - community, help and support

i can't seem find documentation on how works. need have phpbb component 1.2.4. rc3.2 installed use phpbb user mambot? or install phpbb (downloaded fresh http://www.phpbb.com ) first , install phpbb user mambot same database joomla? is using phpbb user mambot? if so, geat hear how got going. tried on weekend , wouldn't work. each time created user though joomla, user doesn't addedd phpbb. have upgraded mysql version 3.x 4.x see if makes difference , test tonight. just sidenote here, mambot work on joomla 1.1 only. you need separate installation of phpbb next @ moment. not need component. install mambot , edit mambot parameters Board index Joomla! Older Version Support Joomla! 1.0 Extensions - 1.0.x Integration & Bridges - 1.0.x phpbb - Joomla! Integration

HTTPService closure/callback

i trying implement closure example found on website somewhere alert not working. means call.handler not executing properly. here code: public function getsomething(url:string):boolean { var httpservice:httpservice = new httpservice(); var call:object; httpservice.url = url; httpservice.send(); call = httpservice.send(); call.handler = function (event:event):void { alert.show("i here"); } return true; } can tell me error? new actionscript , flex. can tell me why calling send method 2 times. call once , check it. More discussions in Flex (Read Only) adobe

help about pygame pyui - Raspberry Pi Forums

i use pyui make simple gui . don't want start x windows. run testfile program block @ pygame.display.set_mode(size) if press ctrl+c program continue run..(some times program crash segment fault!!) if start x windows program can run success. print pygame.display.get_driver .driver fbcon. , attachment test file.. thx everyone.! here's relevant tutorial adafruit: http://learn.adafruit.com/pi-video-outp ... ramebuffer raspberrypi

Setting a time limit?

hi quite new programming , arduino ( 2nd day in!) trying use arduino run small motor inflatables. want put time constraint in if motor has been running x amount of time cuts out. struggling time command? have read guessing has millis function? appreciate help? thanks rez the common way determine passage of time on arduino millis function. returns number of milliseconds since system started. if store value of millis when start motor can calculate how long been running. hope following gives ideas how add desired functionality sketch: [font=courier new]#define cutout (1000 * 60 * 10)  // cut out in 10 minutes // number of milliseconds cutout - 1000 ms per second, 60 mins per second, 10 number of minutes // code start motor here unsigned long starttime = millis(); //following example code wait button press stop motor - replace code while( digitalread(buttonpin) == high){ // wait button go low     if( millis() - starttime > cutout) // check if cutout m...

"accurate program execution timing (event mngmt.)"

can 1 provide reference on arduino concerning this? how accurate? arduino pretty bare avr chip.  there essential no "operating system other 1 background interrupt introduce less 10 microseconds of latency.   it's ability accurately time events 'real time' uses entirely dependent on how write software... Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > "accurate program execution timing (event mngmt.)" arduino

expected primary-expression & obtaining substrings

hopefully can show me 'best way' substrings.... plans return pointer new string assign currenttext to.... but real problem getting pesky "error: expected primary-expression before 'char'" , pointing @ 'char substr(' on bottom..... here's code.... code: [select] #include <mlcd.h> char scrolltext[255] = "\0"; char currenttext[255] = "\0"; char tmpstr[255] = "\0"; int curpos = 0; int curdir = 1; mlcd mlcd(19200); char substr(*char, int, int); void setup() {  mlcd.start();  mlcd.clrscrn();  strcat(scrolltext, "bluegrass digital inc."); } void loop() {  while (1)  {    if (curdir == 1)    {      strncat(currenttext, &scrolltext[curpos], 1);    }    if (strlen(currenttext) > 16)    {      //strncpy(currenttext, *(&currenttext+1), 16);    }    if (curpos < strlen(scrolltext)) {curpos += curdir;} else {curdir = -1;}    mlcd.setcursor(16 - strlen(currenttext), 1);    mlcd....

Arduino Volt Meter

i working way through joe pardue's  smileymicros.com book entitled "an arduino workshop".  on page 83 describes how install arduino voltmeter application downloading "his website".  i have searched smileymicros .com site , can't life of me find application.  can offer assistance?  i appreciative.  thanks. use contact information on website in touch author. Arduino Forum > Forum 2005-2010 (read only) > Software > Interfacing > Arduino Volt Meter arduino

Automated Presentation - Raspberry Pi Forums

i not stranger unix struggling open office impress run automatically on powering rpi. tried adding startx;soffice -show pp.odp script , adding rc.d using update rc.d doesn't have desired effect. tried adding .bash_profile didn't work either. ideas please? you mentioned created file .bash_profile. read comments @ top of file .profile carefully. if .bash_profile exists, .profile not run, path not set, path soffice unknown. recommend deleting .bash_profile , add command end of .profile. there several steps needed launch graphical application. 1. need boot graphical runlevel. edit /etc/inittab change initial runlevel 2 5. 2. need automatically login user. edit /etc/inittab , change line in /etc/inittab looks this: 1:2345:respawn:/sbin/getty --noclear 38400 tty1 (yourusername pi) 1:2345:respawn:/bin/login -f yourusername tty1 </dev/tty1 >/dev/tty1 2>&1 3. need add "soffice -show pp.odp &" end of .profile user. raspberrypi

Thread: c++ illegitimate seg. fault

so before run program like... code: int main () { int a[400000]; int b[400000]; int c[400000]; int d[400000]; int e[400000]; //int f[400000]; system("free"); return 0; } i typed free in terminal see how muce space have says... code: total used free shared buffers cached mem: 1018324 566952 451372 0 21348 238816 -/+ buffers/cache: 306788 711536 swap: 2980016 0 2980016 and program ( system("free"); ) returns code: total used free shared buffers cached mem: 1018324 566912 451412 0 21360 238760 -/+ buffers/cache: 306792 711532 swap: 2980016 0 2980016 so should have enough free space for... code: int main () { int a[400000]; int b[400000]; int c[400000]; int d[400000]; int e[400000]; int f[400000]; system("free...

What is the best way to accomplish this? ( see picture) - Joomla! Forum - community, help and support

Image
hello folks! i in process of building new classifieds site, , want looks this: it's supposed me classified ads, banner management , articles published. please notice scetch - ide of how thinking place things. i have (after little fooling around in web) found classified ads script like... it's both published under gnu license , works good. have looked noah's classified, find little "stand alone" work want too... its' php. what best (easiest) way accomplish this? -using wrapper module/ component?   - if so: how make template this? what cost - if let else me? (this not proposal, more quastion know value of work, , wether self or not... :-)  ) preb section 1: section 2:   section 4:   section 3:     section 6:     section 5:     and place  section 3, 4 , 6 under a  or width etc. hope gives ide.... after can make menu cat show , place top (section 4) etc. etc. etc. alot of work... ...

Thread: Reconexion automatica de ADSL

bueno el tema es que ultimamente mis amigos de espidi me cortan el adsl sin motivo aparente del lado del servidor, lo que quiero saber es si hay alguna forma no "obsena" de reconectar cuando se desconecta. para conectar uso el network manager del gnome que es de facil configuracion. no obsena : lease algo como un check box en algun lado que diga "reconectar si los **** de espidi te desconetan". osea no tengo muchas ganas de hacer un script y ponerlo en if-down. saludos Forum The Ubuntu Forum Community Other Discussion and Support Ubuntu LoCo Team Forums Americas LoCo Teams Argentina Team Software Reconexion automatica de ADSL Ubuntu

how to add support for Chinese characters? - Raspberry Pi Forums

Image
i start rpi wheezy os (updated on 2012-09-18). bulit-in web browser, midori, v0.4.3 , can support big5 characters(not support simplified chinese characters/gb). when visited 1 website big5-encoded, midori cannot display correctly switched big5 decoding manually. now, questions here: 1. how add support chinese characters wheezy os? 2. v0.46, midori can support big5/gb, tried compile v0.4.7 under wheezy , failed. other method new one? thx. 1. raspi-config ć…ˆèš­ćźš locales, 橂 zh_tw.utf-8 等 2. ćź‰èŁć­—ćž‹ sudo apt-get install ttf-wqy-microhei 3. midori 遾歗枋 æ–‡æł‰é©›ćŸźç±łé»‘ ä»„äžŠèš­ćźšćœšäž‹äœżç”šæ­Łé«”äž­æ–‡ç„ĄèȘ€。 raspberrypi

Simple way to embed a web page in a processing sk

i new processing. have small arduino based bot controlled remotely processing app. bot hosts wi-fi ip camera. trying embed camera feed web page camera in processing app can control bot remotely , see ip camera feed @ same time i have looked quite lot simple library incorporate processing app display web page have not found yet appreciate provided tks 'regular java' has jpanel display html: http://www.java2s.com/code/java/swing-jfc/jeditorpaneandtheswinghtmlpackage7.htm you may have turn java app round have java swing user interface calls communications part of processing code. Arduino Forum > Forum 2005-2010 (read only) > Software > Interfacing > Simple way to embed a web page in a processing sk arduino

Lack of ASP.Net 2.0 Support - Trying to Lock out Millions of Users?

i've been loyal dreamweaver user since inception , adobe keeping useless me in cs3 no modern asp.net support @ all? can't use dreamweaver master pages, 1 of fundamental features of asp.net, means can't use other pure css file authoring. why locking out millions of users adobe? app doesn't work popular web development platform on planet. why this? need fundamental support asp.net can include dreaweaver in workflow you've ignored predominate server side framework entirely. feel abandoned , betrayed can't support basic asp.net tags adobe. seems ridiculous can't head around it. seth seth, are yo using new cs3? i picked , assumed 2.0 friendly "sl-tech" <webforumsuser@macromedia.com> wrote in message news:f2shf7$6if$1@forums.macromedia.com... > i've been loyal dreamweaver user since inception , adobe > keeping > useless me no modern asp.net support @ all? can't use > dreamweaver master pages, 1 of fundamental features o...

Tables in Firefox

my tables transparent in ie7 show in firefox. how can make them transparent in firefox,too? webpage www.connectivitymexico.com. you have border of 1 set in table tag. <table border="1"... firefox guessing mean 1px while ie thinking "1? 1 what? 1 pixel? 1 inch? 1 dollar?" change to: <table border="0"... -- alec fehl, mcse, a+, ace, aci adobe community expert author: microsoft office 2007 powerpoint: comprehensive course (labyrinth publications) welcome web design , html (labyrinth publications) co-author: microsoft office 2007: essentials (labyrinth publications) computer concepts , vista (labyrinth publications) mike meyers' a+ guide managing , troubleshooting pcs (mcgraw-hill) internet systems , applications (emc paradigm) More discussions in Dreamweaver support forum adobe

Wanted: Tips for setting up a Raspberry Jam - Raspberry Pi Forums

i'm checking employer whether ok raspberry jam being hosted @ our offices near staines , wondering if has tips or ideas have seen or implemented make great jam. i've read http://raspberryjam.org.uk/make-a-raspberryjam/ , great start. questions have are: how before event should announced? kind of numbers can expected? facilities required (tables, power, network, screens,...) presentations these done in same place show , tell or room? , ideas welcome. thanks, albert. raspberrypi

HTML formatted dynamic text box screws up font!!! whaa?!?

ive got text in dynamic text box, can use 'asfunction' link frame labels within site. but, choosing dynamic text changes resulting of font! totally balls's formatting. totally ignores have put new line (ie pressed enter(return)key). , misses out half text. text box in flash constrains , creates new line, text dissapoears. i've tried sticking <br> in there no love. i not linking text file, placing text in there in flash 8. im using cordia upc site, nice clean font, , suddenly, when preview in browser, arial or such crap. or maybe still smae font looks crappy! uglying scene... whats scoop here? am destined have crappy text , usefull links or there sweet way round this.. please thanks More discussions in Adobe Animate CC - General adobe

Ako book ir spamas - Joomla! Forum - community, help and support

Image
kaip uzbaninti kaikuriu hostus ar ip adresus, kad negaletu rasyti ako book? if($_server['remote_host'] == 'mm-139-247-209-82.adsl.mgts.by') { echo "you ip adress or host ban"; } if($_server['remote_addr'] == '139.247.209.82') { echo "you ip adress or host ban"; } ?> irasau index.php bet kad nesuveikia priemone kaip galima uzdrausti rasyti sveciu knyga? dekui Board index Joomla! International Language Support International Zone Lithuanian Forum

5V Supply Trips Board - Raspberry Pi Forums

Image
when trying measure voltage between either of 5v or 3.3v supplies ground. via gpio, pi trips , resets? i'm not sure if i'm doing right or not? :s appreciated so depends on ... how powering pi else attached using measure voltages voltages read on pins first thought: meter reasonable 1 - standard dvm. set measure dc volts rather ohms or amps? sure you're touching right pins, , those? psu job? work correctly mouse / keyboard attatched? or trying fault-find - trying find out if psu ok? happens after pi resets? reboot while keep probes on pins? , if so, voltages read? raspberrypi

1-wire temperature and voltage - Raspberry Pi Forums

hi i've had great success 1-wire temperature sensor running on 10 m of phone cable. wondered if there 1-wire sensor out there direct voltage measurement? trying read electricity meter did using http://github.com/yfory/power recommended on forum. want see if can read clip on meter (which seems give 50hz voltage 0 -> afew v) without bother of ad converter. thinking there 1-wire voltage sensor use or use similar circuit photoresistor above diode watch capacitor fill up? r the ds2438z marketed "smart battery monitor" 1-wire device has 0-5v adc input can read owfs, digitemp , no doubt other software too. caveat don't mention bus master using , don't think ds2438z work gpio based driver need using "proper" master such ds9490r or 1 of our rpi2 modules. don't know of ready made board sell humidity sensor module uses ic , if of interest supply 1 without humidity sensor on leaving ds2438z use 0-5v adc. http://www.sheepwalkelectronics.co.uk/...

Radio button HTML with Mega

can please? i'm trying create group of radio buttons mega. i'm using webserver code posted while ago on forum , works indeed. i've created html works ok when html file viewed using internet explorer (intended viewed via ethernet shield) can't head around how format html mega compile it. i've created group of 7 radio buttons , html works - see html below. a pointer in direction of existing code can learn , possibly modify use big help. thanks received! ============================================ <legend> item selection </legend> <fieldset> <body> <form action=""> 1: <input type="radio" name="groupselect" value="1" checked="checked"> 2: <input type="radio" name="groupselect" value="2"> 3: <input type="radio" name="groupselect" value="3"> 4: <input type="radio" name="groupselect" ...

Run operation Once

hello all, first post, , c experience level of 'blinky' has been learning curve me.  just got arduino few weeks ago , have been trying make clock makes math problems turn alarm off.  an idea has been on web while, search 'math alarm clock'.  for me, sort of lets learn how how c thing works project... in few sections of code have wanted run operation once.  for instance math problem created random().  so run random() once , allow user input answer.  presently use for(i=0,i<1,i++).  is best way this? how posting code can see builds point , how best achieve outcome want. Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > Run operation Once arduino

Why does this not loop? please!!

can tell me why sketch not loop , detect changes in light levels - please!! delays in loop servo slow down repositioning , works way if can main loop work. code: [select] // controlling servo position using potentiometer (variable photoresistor) #include <servo.h> servo myservo;  // create servo object control servo int potpin = 0;  // analog pin used connect potentiometer int val;    // variable read value analog pin int valold;  //updates val void setup() {valold=90; myservo.attach(9);  // attaches servo on pin 9 servo object } void loop() {    val = analogread(potpin);            // reads value of potentiometer (value between 0 , 1023)  val = map(val, 0, 1023, 0, 179);     // scale use servo (value between 0 , 180) if (val > valold);  for (val=valold; val!=valold; val++)  {myservo.write(val); delay (150);}   if (val < valold);  for (val=valold; val!=valold; val--)  {myservo.write(val); delay...

USB HDD: How bad is bad? - Raspberry Pi Forums

hi, i've been playing rpi while , absolutely love it. in last 2 days i've experienced extremely slow write speeds on usbv3 external hdd connected. (25kb/s) realise there many threads out there usb storage problems, of them don't seem indicate problem severe mine. internet faster this. want know if problem "probably" due usb problems described elsewhere (i've tried suggestions, disabling "turbo" mode, etc without success). suspect problem different. os i'm experiencing problem on raspbmc rc4 (raspbmc seems loathe tell me if has updated or not, look?). i've updated firmware using rpi-update, still same problem. latest bleeding-edge firmware makes video output unstable (to point locking device), seems trying fix this, @ moment i'm running kernel month ago. i'm sorry cannot more specific: trying diagnose late night , haven't had moment gather exact versions, etc. if needed procure. circumstances: drive: self-powered seagate 2...

Wiero Screen Problem.

hi all, i have strange problem 20x4 lcd screen when uploading arduino. when add following lines of code , upload them sends screen crazy random japanese type characters though compiles fine. code: [select] if (movesteps < 0){  lcd.print ("   left  "); } if (movesteps > 0){  lcd.print ("   right  "); } if remove above lines of code arduino project works perfectly. above code in main loop body of code show below. does have idea's i'm mystified. code: [select] //include button library #include <button.h> // include library code: #include <liquidcrystal.h> // initialize library numbers of interface pins liquidcrystal lcd(12, 11, 5, 4, 3, 2); #include <pololuwheelencoders.h> pololuwheelencoders encoder; char val1, val2; char s;    int = 0;   button button_left = button(6,pullup); //button button_ent = button (7, pullup); button button_right = button(7,pullup); int buttonloop; unsigned long previousmillis; void set...