Posts

Robot Control with flask + PWM ? - Raspberry Pi Forums

hi i'm using following code launch robot. robot has 2 motor uses pwm control speed. code: select all try: import rpi.gpio gpio except runtimeerror: print("error importing rpi.gpio! must run root using sudo") flask import flask, render_template # initialize flask application app = flask(__name__) ######################### # motor pins motor1a = 17 #left fwd motor1b = 18 #left rev motor2a = 23 #right fwd motor2b = 22 #right rev # freq of pwm outputs pwm_freq = 50 #50hz # uses processor pin numbering gpio.setmode(gpio.bcm) # speed = pwm duty cycle, 0 = off, 100 = max speed = 100 # (1,1) = fwd, (2,2) = rev, (1,2) = left, (0,0) = right, (1,0) = fwd left, (0,1) = fwd right, (2,0) = rev left, (0,2) = rev right current_direction = (0, 0) # setup pins gpio.setup(motor1a, gpio.out) gpio.setup(motor1b, gpio.out) gpio.setup(motor2a, gpio.out) gpio.setup(motor2b, gpio.out) #gpio.setup(pwm_all, gpio.out) pin1a = gpio.pwm(motor1a, pwm_freq) pin1b = gpio.pw...

hoe kom ik van 1.0.7 naar 1.0.10? - Joomla! Forum - community, help and support

Image
ik heb een website die nog onder 1.07 draait. ik wil eigenlijk de patches 1.0.7 naar 1.0.8 1.0.8 naar 1.0.9 en 1.0.9 naar 1.0.10 achter elkaar draaien. de eerste patch staat niet tussen de downloads op joomlacommunity.nl, de anderen wel. iemand een tip? hansiepansie hansiepansie wrote: ik heb een website die nog onder 1.07 draait. ik wil eigenlijk de patches 1.0.7 naar 1.0.8 1.0.8 naar 1.0.9 en 1.0.9 naar 1.0.10 achter elkaar draaien. de eerste patch staat niet tussen de downloads op joomlacommunity.nl, de anderen wel. iemand een tip? hansiepansie antwoord en de bestanden inmiddels gevonden op http://forge.joomla.org/sf/frs/do/listr ... joomla_1_0 . sorry  hansiepansie Board index Joomla! International Language Support International Zone Dutch Forum Joomla! 1.0 Installatie 1.0.x

Notizie in Joomla - Joomla! Forum - community, help and support

Image
sto facendo delle prove per inserire delle notizie in joomla che compaiano sulla homepage, e fin qui tutto bene. guardando gli esempi delle notizie che sono presenti al momento dell'installazione di joomla, si vedono le immagini inserite con il mosimage che sono circondate dal testo.... come posso fare per far sì che il testo prosegua anche fianco dell'immagine, anziché saltare in basso? ho guardato le notizie di joomla attentamente, html compreso, ma non ho notato nessuna differenza dalle mie....ma le mie non vanno, ovvio! heheh  ho provato, ma non ci sono riuscito, il testo salta in basso, oltre la foto. quando inserisci una immagine con {mosimage} puoi impostare l'allineamento e altri parametri...    provali tutti... Board index Joomla! International Language Support International Zone Italian Forum

[SOLVED] Replacing shiftOut with hard SPI

Image
hello, i'm tweaking nokia 5110 lcd's library adafruit more performance. so, want replace shiftout hardware spi. the original working code : code: [select] inline void adafruit_pcd8544::fastspiwrite(uint8_t d) {    for(uint8_t bit = 0x80; bit; bit >>= 1) {    *clkport &= ~clkpinmask;    if(d & bit) *mosiport |=  mosipinmask;    else        *mosiport &= ~mosipinmask;    *clkport |=  clkpinmask;  } } //a slower alternative : inline void adafruit_pcd8544::slowspiwrite(uint8_t c) {  shiftout(_din, _sclk, msbfirst, c); } (line 192 https://github.com/adafruit/adafruit-pcd8544-nokia-5110-lcd-library/blob/master/adafruit_pcd8544.cpp , shiftout alternative line 202) so replace (i renamed library gamebuino_screen, don't care that) code: [select] void gamebuino_screen::begin(uint8_t contrast) {  spi.begin();  spi.setbitorder(msbfirst);  spi.se...

Imagenes en VirtueMart - Joomla! Forum - community, help and support

hola hola... soy un migrado usuario de mambo... tengo un portal que tengo que trasladar por varias razones.... tengo que intentar dejarlo en una sola plataforma. por el minuto uso tres para simular una... el portal es en mambo, el foro en phpbb y la tienda virtual es oscommerce. la idea es dejarlo integrado para los usuarios, asi se registran en sólo un lugar. bueno, mi problema es que virtuemart, al igual que oscommerce, sólo permite poner una imagen por producto... creo que no vende mucho solo una imagen por producto, y necesito una aplicacion que me de seguridad y me permita poner varias imagenes la vez. quisiera saber si alguien sabe o tiene algo para integrar en virtuemart para aumentar el número de imágenes por producto, o bien alguna aplicación mejor que virtuemart en ese sentido. esero su comprensión y alguna ayuda. saludos!! hola! yo descubrí  hace poco que puedes agregar más imágenes por producto en virtue  mart, claro que que en el depliegue inicial ves solo la pr...

BKOMMC error-84, PS_EN bit is not set - any concern? - Raspberry Pi Forums

hi, have booted compute module. in boot messages getting:- [ 5.231314] mmc0: error -84 whilst initialising mmc card [ 5.566489] mmc0: error -84 whilst initialising mmc card [ 6.017048] mmc0: error -84 whilst initialising mmc card [ 6.688735] mmc0: error -84 whilst initialising mmc card [ 7.805360] mmc0: bkops_en bit not set [ 7.818765] mmc0: new high speed mmc card @ address 0001 [ 7.828424] mmcblk0: mmc0:0001 4feacb 3.64 gib [ 7.836858] mmcblk0boot0: mmc0:0001 4feacb partition 1 4.00 mib there might have missed out. thankful if explain. regards i diggup thread because have same error firmware over commits on jan 30, 2015 -> 67197d9d73c56570578cb2c6c188af263a37ecd9 error bkommc error-110 , keeps on looping. doens't pass boot. bootload updated raspberrypi-bootloader (1.20150214-1) br, psycomen raspberrypi

Ethernet lockups/freezes/non responsive

i having trouble ethernet becoming non responsive after period of time ranging few hours day or more.  the hardware arduino mega 2560 r3 ethernet shield.  i using previous generation of ethernet shield , bought new shield resolve issue problem remains. using windows 7 ide = 1.0.5 .  i have searched  the forum many hours cant seem find solution.  ive found many people seemingly same problem no concrete solution. posting complete code sketch in hope see cause issue.  the sketch rather long , gives me exact info need when not locked up. ethernet stuff near end of sketch.  i have no formal training in c programming see code works. if more info needed please let me know. oh...the url http://67.231.227.82:8250/  i have post code in 2 posts exceeds 9500 character count. code: [select] #include <onewire.h> #include <dallastemperature.h> #include <spi.h> #include <ethernet.h> #include <sensirion.h> #include <wire....