Write Raspberry Pi program, without a Raspberry Pi - raspberry-pi

Im soon gonna buy a Raspberry Pi, but I dont want to wait until I get it to start writing my program.
My PI is gonna be connected to the TV, and have a GUI.
Im gonna write my program in Python
Can I just start writing a GUI application on my computer, and just push it over, or is is something that I need to think about.

Sure, you can setup a virtual machine with linux on it. This way you can test the compatibility of your code. If it runs on linux, it will most surely will run on the raspberry (which also runs linux).
In the case of Python, it should even run fine when tested on windows, unless you use OS specific features.

Well when you want program in python is simple on windows but you have to choose version (raspberry pi has both) Python In this gui you can program what you want and after raspi comes only transfer program :) have good fun :)

Related

Using VSCode with a Raspberry Pi 1

I'm trying to set-up Raspberry Pi 1 with VSCode so I could run code remotely on it. I've installed VSCode on the Pi, but when trying to launch it with the 'code' command, I get an 'Illegal instruction' error.
I tried connecting remotely from my Windows workstation, but I got an error saying that "the remote's host architecture isn't supported".
My question is, is it possible to install VSCode on the original Pi? If not, what IDE do you use to work remotely on it, besides ssh and VNC?
According to VS Code's official site, Raspberry Pi 1 is not supported.
First-generation Raspberry Pi modules and Raspberry Pi Zero are not supported as they only include an ARMv6 CPU.
Seems to me Raspberry Pi 1 has very low hardware and I'm sure that it will give you hard times when you codding. If you wanna use it anyway, you may continue with a browser-based editor like AWS cloud9.

How do I run a Twincat program without PLC?

I am a beginner in Twincat and have been playing around with it. I watched this playlist where this guy explain structured text and successfully runs a program on his system. However when I try to run on my system, I get error 0x1028. Then I read that I have to configure parallel port as IO port in Twincat - got no idea how to do this. Help please!
You don't need to configure any parallell ports in TwinCAT 3 to run TwinCAT 3 software on your machine.
Not sure what 0x1028 means, but if you're running a 64-bit machine (which you these days most likely are doing) you need to enable Virtualization Technology Extensions (VT-x) in the BIOS of your computer. You also need to run the command C:\TwinCAT\3.1\System\win8settick.bat (as administrator from the CMD)
You could alternatively run TwinCAT in a virtual machine. How you achieve this is described here: https://alltwincat.com/2018/06/14/twincat-virtualization/

How do I make a raspberry pi raspbian application?

I am struggling on how to make a Raspberry Pi app for Raspbian (On a raspberry pi). I have searched and searched for hours but I still can't find out how to make one. There are apps that I can use but I cannot install them. Should I use python??... Please help me!!...
I found a few visual editors like XOJO, I am knew to "RASPBERRY PI" stuff.
It's just a bare machine you can cover it with anything you want. It's basically Lightweight Linux distro which we install mostly on the PI. Can support wide range of applications but IOT related products are more often developed using PI. If this is the case you can start here using android also.
https://developer.android.com/things/hardware/raspberrypi

Configuring QT Creator on Windows 7 (Raspberry pi is target)

So I will start off by saying that I do NOT want know how to setup or run QT on the pi. I am specifically trying to setup Qt Creator 4.0.3 (Based on Qt 5.7.0 (MSVC 2013, 32 bit)) to write and compile C++ and the run it on the Raspberry pi 2. I have found that running qt on the pi is far to slow.
I have searched for two days to find the right toolchain download for qt/raspberry and its corresponding qt configuration. Nothing seems to work. I have found what seems like a thousand dead ends searching the web. I can write and compile apps for windows console fine. But finding information to cross compile for raspberry seems to be an elusive Unicorn!
Does anyone have this working??? If so which of the many toolchains did you use? And please help me replicate your QT configuration. The closest I have come is using the GCC ARM Embedded toolchain but I cant seem to get the QT options set correctly and I believe that only gets me part of the way there. My ultimate goal is to control GPIO and use the RadioHead library.
Thanks in advance!
I also wanted to do that, and I actually achieved it, It's called "cross-compilation", you build on the Main PC and then compile it to the target.
Initially I wanted to use my main PC with windows 10, but I ended creating a linux partition on my pc to do it since I didn't found any way to do it with windows.
Qt has a very comprehensive tutorial with Qt5 and RaspberryPi2 (both with linux), the only problem is you need linux on your pc to do it. If you want to do this I would suggest following this steps:
Create a linux partition with the same os as in the pi (for example raspbian and debian) and name the username (in linux) "pi" and the password "raspberry". This will help you with external libraries.
Install Qt for Linux on your new partition
Follow Qt's tutorial on https://wiki.qt.io/RaspberryPi2EGLFS
The tutorial is really straightforward, I really recommend it.
Good Luck.

win10 IOT on raspberry pi3 or raspberry pi2

I have a raspberry pi3 but I am having tremendous issues with trying to install win10 IOT on it. When I download the core and try to boot it I only get the "rainbow" screen. When installing noobs I dont even get the option for win10 IOT. Anyone else had problems with this? Will it work smoother on a raspberry pi2 rather then the pi3?
Im not asking if anyone know solutions for booting win10 IOT on pi3, I have tried most of it :) Just asking if anyone has better experiences using pi2 for it?
If you follow the link to Manually set up your IoT Core device Microsoft there explain how to install with a Windows computer.
If you are using UNIX however, there isn't much help for you. As an experienced Unix user who last used Windows seriously about six years ago I found it quite intimidating to have to
a) log into my Microsoft account (that I last used from a different continent)
b) sign up as a "Windows Insider"
Even after going through these hurdles I only stumbled across the ISO file by accident, and even then nothing for the Raspberry Pi.
This answer isn't given to help you achieve your aim, which I despair of doing, but to let you know that the whole process perplexed someone of considerable experience. I don't see myself using Win 10 for my Pis without buying a pre-configured SD card.
What you're going to need to do is follow this link and do what it says:
https://buildazure.com/2017/05/24/setup-raspberry-pi-with-windows-10-iot-core/
Basically:
Load up your microsd card onto the PC
Use the wizard
Insert card into the Pi
And boot it up.
i working in windows 10 iot core.
first time when i install windows 10 iot core i follow the following list.
how to install windows 10 iot core
follow the link.
i things your problem is solve...