Go to advanced search

by Ganjanouille
Wed Apr 04, 2018 5:06 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: 6N138 UART 3.3 to 5v unidirectionnal level shifter
Replies: 1
Views: 456

6N138 UART 3.3 to 5v unidirectionnal level shifter

Hi folks! I'm trying to do some level shifting for interfacing with midi instruments. I got this 6N138 lying around and want to try to achieve my goal with that. I draw this schematic, could someone tell me if it will blow my raspberry away??!! Or my midi intruments?! :shock: https://www.dropbox.com...
by Ganjanouille
Wed Apr 04, 2018 4:20 pm
Forum: General programming discussion
Topic: [SOVED] Start python on RPi Zero startup
Replies: 6
Views: 2347

Re: Start python on RPi Zero startup

I just added full path in python script!


Now it's working. Thank's a lot!
by Ganjanouille
Wed Apr 04, 2018 4:09 pm
Forum: General programming discussion
Topic: [SOVED] Start python on RPi Zero startup
Replies: 6
Views: 2347

Re: Start python on RPi Zero startup

So I did the correction. Still don't work (it was correct when I tested it first time) So know it's become clearer, error.txt content is: /etc/rc.local: line 15: @reboot: command not found /etc/rc.local: line 19: @reboot: command not found Traceback (most recent call last): File "/home/pi/oled/...
by Ganjanouille
Wed Apr 04, 2018 3:32 pm
Forum: General programming discussion
Topic: [SOVED] Start python on RPi Zero startup
Replies: 6
Views: 2347

Re: Start python on RPi Zero startup

Ok I did that.

error.txtis:

Code: Select all

/etc/rc.local: line 15: @reboot: command not found
:o

I ask google for that output but found nothing for the moment.

Thank's for the help
by Ganjanouille
Wed Apr 04, 2018 1:45 pm
Forum: General programming discussion
Topic: [SOVED] Start python on RPi Zero startup
Replies: 6
Views: 2347

[SOVED] Start python on RPi Zero startup

Hi folks! I finished my script and tried to make it launch on startup but it does'nt work. I first tried with rc.local file and second with cronetab. rc.local content: #!/bin/bash # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "e...
by Ganjanouille
Wed Apr 04, 2018 3:45 am
Forum: Python
Topic: Is python too slow for my application?
Replies: 11
Views: 2609

Re: Is python too slow for my application? (No, it's not)

Hi guys! Thanks a lot for your help! I got it by threading the data acquisition :D You gave me a lot of usefull information I will try to apply, like writing my own library but it looks hard for the moment... I wrote my script and it's functional. Not as functional as I expected it to be but it doe...
by Ganjanouille
Tue Mar 27, 2018 6:32 pm
Forum: Python
Topic: Is python too slow for my application?
Replies: 11
Views: 2609

Re: Is python too slow for my application?

https://www.youtube.com/watch?v=j4ibT3-1JFk

He's gettin 10 ms latency with arduino. I can't get it with RPi at Ghz clocked processor.

What a shame :roll:

I have to stop here and take some rest... and play around with the actual setting. Without display :evil:
by Ganjanouille
Tue Mar 27, 2018 6:10 pm
Forum: C/C++
Topic: Is there any reason this library won't work with RPi Zero?
Replies: 0
Views: 408

Is there any reason this library won't work with RPi Zero?

Hi folks! Coming from, I guess ( a bit), to lame python for handling my SPI device I found a libray for my purpose written in C++. https://github.com/hallard/ArduiPi_OLED Is there any reason that it won't work with RPi Zero? It's not explicit specified for RPi Zero so I have a doubt. Thanks for read...
by Ganjanouille
Tue Mar 27, 2018 5:56 pm
Forum: Python
Topic: Is python too slow for my application?
Replies: 11
Views: 2609

Re: Is python too slow for my application?

Ok as you say, the slow display will prevent me to see all the values. So the problem will remain the same? I won't struggle through threading if there's no improvement. The only reason I "spy" the ATmega is for updating values on my screen. The real purpose of the TX line from de AVR micr...
by Ganjanouille
Tue Mar 27, 2018 5:43 pm
Forum: Français
Topic: Python est-t-il trop lent pour mon application?
Replies: 7
Views: 813

Re: Python est-t-il trop lent pour mon application?

et que tu affichais dans la console avec des "draw.rectangle((0,0,width,height), outline=0, fill=0)" C'est pas sérieux ou bien? En quoi j'affiche quoique ce soit dans une console dans cette ligne??!! Et tu viens me parler de windows et putty et d'un coup c'est évident que je sois sous Ubu...
by Ganjanouille
Tue Mar 27, 2018 5:30 pm
Forum: Python
Topic: Is python too slow for my application?
Replies: 11
Views: 2609

Re: Is python too slow for my application?

Oh I get it Karrika!

I should make a second thread running in parallel with the serial reading program. This means two separate ".py" files in practice? Is it what you mean?
by Ganjanouille
Tue Mar 27, 2018 5:27 pm
Forum: Python
Topic: Is python too slow for my application?
Replies: 11
Views: 2609

Re: Is python too slow for my application?

Thanks for you're response! First: Purpose is to show real-time changing values on an SPI wired OLED screen. Driver of it is SSD1306, all packed together coming from Adafruit. I'm connected by terminal through SSH connection on the raspberry Zero. Second: If i first store the incoming data and then ...
by Ganjanouille
Tue Mar 27, 2018 4:53 pm
Forum: Python
Topic: Is python too slow for my application?
Replies: 11
Views: 2609

Is python too slow for my application?

Hi folks! I have some huge latency issues when trying to update controller value coming from serial UART. I have normal response with no latency feeling with this code: #Tell debuging user that while loop starts here print "start" while True: i = 0 while i < 3: data = ord(ser.read(1)) # re...
by Ganjanouille
Tue Mar 27, 2018 4:41 pm
Forum: Français
Topic: Python est-t-il trop lent pour mon application?
Replies: 7
Views: 813

Re: Python est-t-il trop lent pour mon application?

Bon... sa me commencer à me gaver de me taper mille explications pour au final ne pas être compris parce qu'on prend pas la peine de lire... Et j'ai pas l'impression de me faire aider par des gens qui savent ce qu'ils font. J'ai sûrement trop d'attente envers les forums et leurs utilisateurs. En gén...
by Ganjanouille
Tue Mar 27, 2018 4:21 pm
Forum: Français
Topic: Python est-t-il trop lent pour mon application?
Replies: 7
Views: 813

Re: Python est-t-il trop lent pour mon application?

Je pense que tu as dû mal me comprendre quelque part (: Quand je dis que j'affiche sur le terminal, c'est bien par la fonction "print". Donc sans passer dutout par l'écran OLED. C'est ce qu'on peut voir quand on lit les exemples de code :P De quel graphismes tu parles? j'affiche maximum 3 ...
by Ganjanouille
Tue Mar 27, 2018 3:18 pm
Forum: Français
Topic: Python est-t-il trop lent pour mon application?
Replies: 7
Views: 813

Re: Python est-t-il trop lent pour mon application?

Salut, Merci pour ta réponse. 1. Et si je n'ai pas d'écran HDMI? Il doit bien y avoir un moyen de déduire la source du problème. 2. Si je limite le nombre d'affichage j'en déduis que je vais sauter des valeurs et donc de mettre à jour lorsque la valeur aura changer de 2 minimum (exemple). Inadmissib...
by Ganjanouille
Mon Mar 26, 2018 9:52 pm
Forum: Français
Topic: Python est-t-il trop lent pour mon application?
Replies: 7
Views: 813

Python est-t-il trop lent pour mon application?

Bonjour tout le monde, Je me passionne actuellement à la réalisation d'un contrôleur midi. Ce dernier est prêt et fonctionne avec un ATmega328 en envoyant les données via UART. La prochaine étape consiste à "espionner" le microcontrôleur avec mon Raspberry Pi Zero en reliant la ligne TX de...
by Ganjanouille
Sun Feb 04, 2018 1:36 pm
Forum: Python
Topic: [pyOpenGL]
Replies: 1
Views: 546

Re: [pyOpenGL]

Because perseverance pay's, I gotta solution out of this site: http://codentronix.com/2011/04/21/rotating-3d-wireframe-cube-with-python/ Nothing to do with OpenGL any more! Great! :D Now my code looks like: Wireframe 3D cube simulation. Developed by Leonel Machava <leonelmachava@gmail.com> http://co...
by Ganjanouille
Sat Feb 03, 2018 11:15 am
Forum: Python
Topic: [pyOpenGL]
Replies: 1
Views: 546

[pyOpenGL]

Hi folks! I'm playing around with a ssd1306 and try to get into some 3D stuff... I was looking to render a cube and move "camera" around. Last 3 days I came above some perspective and rasterisation or other perlin noise stuff... until I found the PyOpenGL library :idea: Now I can render my...

Go to advanced search